<html>
<head>
    <title>Date.js Source Code | Sencha Test 1.0.3</title>
    <!--  Generated on  -->
    <meta charset="UTF-8">
    <link rel="stylesheet" type="text/css" href="css/styles.css">
</head>
<body>
    <pre class="editor editor-colors"><div class="line"><a name="line1"><span class="source js"><span class="comment block documentation js"><span class="punctuation definition comment js"><span>/**</span></span></span></span></div><div class="line"><a name="line2"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@class</span></span><span>&nbsp;Date</span></span></span></div><div class="line"><a name="line3"><a name="Date"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line4"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;Creates&nbsp;`Date`&nbsp;instances&nbsp;which&nbsp;let&nbsp;you&nbsp;work&nbsp;with&nbsp;dates&nbsp;and&nbsp;times.</span></span></span></div><div class="line"><a name="line5"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line6"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;If&nbsp;you&nbsp;supply&nbsp;no&nbsp;arguments,&nbsp;the&nbsp;constructor&nbsp;creates&nbsp;a&nbsp;`Date`&nbsp;object&nbsp;for&nbsp;today&#39;s</span></span></span></div><div class="line"><a name="line7"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;date&nbsp;and&nbsp;time&nbsp;according&nbsp;to&nbsp;local&nbsp;time.&nbsp;If&nbsp;you&nbsp;supply&nbsp;some&nbsp;arguments&nbsp;but&nbsp;not</span></span></span></div><div class="line"><a name="line8"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;others,&nbsp;the&nbsp;missing&nbsp;arguments&nbsp;are&nbsp;set&nbsp;to&nbsp;0.&nbsp;If&nbsp;you&nbsp;supply&nbsp;any&nbsp;arguments,&nbsp;you</span></span></span></div><div class="line"><a name="line9"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;must&nbsp;supply&nbsp;at&nbsp;least&nbsp;the&nbsp;year,&nbsp;month,&nbsp;and&nbsp;day.&nbsp;You&nbsp;can&nbsp;omit&nbsp;the&nbsp;hours,&nbsp;minutes,</span></span></span></div><div class="line"><a name="line10"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;seconds,&nbsp;and&nbsp;milliseconds.</span></span></span></div><div class="line"><a name="line11"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line12"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;The&nbsp;date&nbsp;is&nbsp;measured&nbsp;in&nbsp;milliseconds&nbsp;since&nbsp;midnight&nbsp;01&nbsp;January,&nbsp;1970&nbsp;UTC.&nbsp;A&nbsp;day</span></span></span></div><div class="line"><a name="line13"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;holds&nbsp;86,400,000&nbsp;milliseconds.&nbsp;The&nbsp;`Date`&nbsp;object&nbsp;range&nbsp;is&nbsp;-100,000,000&nbsp;days&nbsp;to</span></span></span></div><div class="line"><a name="line14"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;100,000,000&nbsp;days&nbsp;relative&nbsp;to&nbsp;01&nbsp;January,&nbsp;1970&nbsp;UTC.</span></span></span></div><div class="line"><a name="line15"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line16"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;The&nbsp;`Date`&nbsp;object&nbsp;provides&nbsp;uniform&nbsp;behavior&nbsp;across&nbsp;platforms.</span></span></span></div><div class="line"><a name="line17"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line18"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;The&nbsp;`Date`&nbsp;object&nbsp;supports&nbsp;a&nbsp;number&nbsp;of&nbsp;UTC&nbsp;(universal)&nbsp;methods,&nbsp;as&nbsp;well&nbsp;as</span></span></span></div><div class="line"><a name="line19"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;local&nbsp;time&nbsp;methods.&nbsp;UTC,&nbsp;also&nbsp;known&nbsp;as&nbsp;Greenwich&nbsp;Mean&nbsp;Time&nbsp;(GMT),&nbsp;refers&nbsp;to&nbsp;the</span></span></span></div><div class="line"><a name="line20"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;time&nbsp;as&nbsp;set&nbsp;by&nbsp;the&nbsp;World&nbsp;Time&nbsp;Standard.&nbsp;The&nbsp;local&nbsp;time&nbsp;is&nbsp;the&nbsp;time&nbsp;known&nbsp;to&nbsp;the</span></span></span></div><div class="line"><a name="line21"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;computer&nbsp;where&nbsp;JavaScript&nbsp;is&nbsp;executed.</span></span></span></div><div class="line"><a name="line22"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line23"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;Invoking&nbsp;`Date`&nbsp;in&nbsp;a&nbsp;non-constructor&nbsp;context&nbsp;(i.e.,&nbsp;without&nbsp;the&nbsp;`new`&nbsp;operator)</span></span></span></div><div class="line"><a name="line24"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;will&nbsp;return&nbsp;a&nbsp;string&nbsp;representing&nbsp;the&nbsp;current&nbsp;time.</span></span></span></div><div class="line"><a name="line25"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line26"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;Note&nbsp;that&nbsp;`Date`&nbsp;objects&nbsp;can&nbsp;only&nbsp;be&nbsp;instantiated&nbsp;by&nbsp;calling&nbsp;`Date`&nbsp;or&nbsp;using&nbsp;it</span></span></span></div><div class="line"><a name="line27"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;as&nbsp;a&nbsp;constructor;&nbsp;unlike&nbsp;other&nbsp;JavaScript&nbsp;object&nbsp;types,&nbsp;`Date`&nbsp;objects&nbsp;have&nbsp;no</span></span></span></div><div class="line"><a name="line28"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;literal&nbsp;syntax.</span></span></span></div><div class="line"><a name="line29"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line30"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;#&nbsp;Several&nbsp;ways&nbsp;to&nbsp;assign&nbsp;dates</span></span></span></div><div class="line"><a name="line31"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line32"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;The&nbsp;following&nbsp;example&nbsp;shows&nbsp;several&nbsp;ways&nbsp;to&nbsp;assign&nbsp;dates:</span></span></span></div><div class="line"><a name="line33"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line34"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;today&nbsp;=&nbsp;new&nbsp;Date();</span></span></span></div><div class="line"><a name="line35"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;birthday&nbsp;=&nbsp;new&nbsp;Date(&quot;December&nbsp;19,&nbsp;1989&nbsp;03:24:00&quot;);</span></span></span></div><div class="line"><a name="line36"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;birthday&nbsp;=&nbsp;new&nbsp;Date(1989,11,19);</span></span></span></div><div class="line"><a name="line37"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;birthday&nbsp;=&nbsp;new&nbsp;Date(1989,11,17,3,24,0);</span></span></span></div><div class="line"><a name="line38"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line39"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;#&nbsp;Calculating&nbsp;elapsed&nbsp;time</span></span></span></div><div class="line"><a name="line40"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line41"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;The&nbsp;following&nbsp;examples&nbsp;show&nbsp;how&nbsp;to&nbsp;determine&nbsp;the&nbsp;elapsed&nbsp;time&nbsp;between&nbsp;two&nbsp;dates:</span></span></span></div><div class="line"><a name="line42"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line43"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;using&nbsp;static&nbsp;methods</span></span></span></div><div class="line"><a name="line44"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;start&nbsp;=&nbsp;Date.now();</span></span></span></div><div class="line"><a name="line45"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;the&nbsp;event&nbsp;you&#39;d&nbsp;like&nbsp;to&nbsp;time&nbsp;goes&nbsp;here:</span></span></span></div><div class="line"><a name="line46"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;doSomethingForALongTime();</span></span></span></div><div class="line"><a name="line47"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;end&nbsp;=&nbsp;Date.now();</span></span></span></div><div class="line"><a name="line48"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;elapsed&nbsp;=&nbsp;end&nbsp;-&nbsp;start;&nbsp;//&nbsp;time&nbsp;in&nbsp;milliseconds</span></span></span></div><div class="line"><a name="line49"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line50"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;if&nbsp;you&nbsp;have&nbsp;Date&nbsp;objects</span></span></span></div><div class="line"><a name="line51"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;start&nbsp;=&nbsp;new&nbsp;Date();</span></span></span></div><div class="line"><a name="line52"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;the&nbsp;event&nbsp;you&#39;d&nbsp;like&nbsp;to&nbsp;time&nbsp;goes&nbsp;here:</span></span></span></div><div class="line"><a name="line53"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;doSomethingForALongTime();</span></span></span></div><div class="line"><a name="line54"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;end&nbsp;=&nbsp;new&nbsp;Date();</span></span></span></div><div class="line"><a name="line55"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;elapsed&nbsp;=&nbsp;end.getTime()&nbsp;-&nbsp;start.getTime();&nbsp;//&nbsp;time&nbsp;in&nbsp;milliseconds</span></span></span></div><div class="line"><a name="line56"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line57"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;if&nbsp;you&nbsp;want&nbsp;to&nbsp;test&nbsp;a&nbsp;function&nbsp;and&nbsp;get&nbsp;back&nbsp;its&nbsp;return</span></span></span></div><div class="line"><a name="line58"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;function&nbsp;printElapsedTime&nbsp;(fTest)&nbsp;{</span></span></span></div><div class="line"><a name="line59"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;nStartTime&nbsp;=&nbsp;Date.now(),&nbsp;vReturn&nbsp;=&nbsp;fTest(),&nbsp;nEndTime&nbsp;=&nbsp;Date.now();</span></span></span></div><div class="line"><a name="line60"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;alert(&quot;Elapsed&nbsp;time:&nbsp;&quot;&nbsp;+&nbsp;String(nEndTime&nbsp;-&nbsp;nStartTime)&nbsp;+&nbsp;&quot;</span></span></span></div><div class="line"><a name="line61"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;milliseconds&quot;);</span></span></span></div><div class="line"><a name="line62"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;vReturn;</span></span></span></div><div class="line"><a name="line63"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</span></span></span></div><div class="line"><a name="line64"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line65"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;yourFunctionReturn&nbsp;=&nbsp;printElapsedTime(yourFunction);</span></span></span></div><div class="line"><a name="line66"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line67"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;#&nbsp;ISO&nbsp;8601&nbsp;formatted&nbsp;dates</span></span></span></div><div class="line"><a name="line68"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line69"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;The&nbsp;following&nbsp;example&nbsp;shows&nbsp;how&nbsp;to&nbsp;formate&nbsp;a&nbsp;date&nbsp;in&nbsp;an&nbsp;ISO&nbsp;8601&nbsp;format&nbsp;using</span></span></span></div><div class="line"><a name="line70"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;UTC:</span></span></span></div><div class="line"><a name="line71"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line72"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;use&nbsp;a&nbsp;function&nbsp;for&nbsp;the&nbsp;exact&nbsp;format&nbsp;desired...</span></span></span></div><div class="line"><a name="line73"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;function&nbsp;ISODateString(d){</span></span></span></div><div class="line"><a name="line74"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;function&nbsp;pad(n){return&nbsp;n&lt;10&nbsp;?&nbsp;&#39;0&#39;+n&nbsp;:&nbsp;n}</span></span></span></div><div class="line"><a name="line75"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;d.getUTCFullYear()+&#39;-&#39;</span></span></span></div><div class="line"><a name="line76"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;+&nbsp;pad(d.getUTCMonth()+1)+&#39;-&#39;</span></span></span></div><div class="line"><a name="line77"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;+&nbsp;pad(d.getUTCDate())+&#39;T&#39;</span></span></span></div><div class="line"><a name="line78"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;+&nbsp;pad(d.getUTCHours())+&#39;:&#39;</span></span></span></div><div class="line"><a name="line79"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;+&nbsp;pad(d.getUTCMinutes())+&#39;:&#39;</span></span></span></div><div class="line"><a name="line80"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;+&nbsp;pad(d.getUTCSeconds())+&#39;Z&#39;}</span></span></span></div><div class="line"><a name="line81"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line82"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;d&nbsp;=&nbsp;new&nbsp;Date();</span></span></span></div><div class="line"><a name="line83"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;print(ISODateString(d));&nbsp;//&nbsp;prints&nbsp;something&nbsp;like&nbsp;2009-09-28T19:03:12Z</span></span></span></div><div class="line"><a name="line84"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line85"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&lt;div&nbsp;class=&quot;notice&quot;&gt;</span></span></span></div><div class="line"><a name="line86"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;Documentation&nbsp;for&nbsp;this&nbsp;class&nbsp;comes&nbsp;from&nbsp;[MDN](</span><span class="markup underline link https hyperlink"><span>https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date</span></span><span>)</span></span></span></div><div class="line"><a name="line87"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;and&nbsp;is&nbsp;available&nbsp;under&nbsp;[Creative&nbsp;Commons:&nbsp;Attribution-Sharealike&nbsp;license](</span><span class="markup underline link http hyperlink"><span>http://creativecommons.org/licenses/by-sa/2.0/</span></span><span>).</span></span></span></div><div class="line"><a name="line88"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&lt;/div&gt;</span></span></span></div><div class="line"><a name="line89"><span class="source js"><span class="comment block documentation js"><span>&nbsp;</span><span class="punctuation definition comment js"><span>*/</span></span></span></span></div><div class="line"><a name="line90"><span class="source js"><span>&nbsp;</span></span></div><div class="line"><a name="line91"><span class="source js"><span class="comment block documentation js"><span class="punctuation definition comment js"><span>/**</span></span></span></span></div><div class="line"><a name="line92"><a name="Date-method-constructor"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@method</span></span><span>&nbsp;constructor</span></span></span></div><div class="line"><a name="line93"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;Creates&nbsp;new&nbsp;Date&nbsp;object.</span></span></span></div><div class="line"><a name="line94"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line95"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@param</span></span><span>&nbsp;{Number/String}&nbsp;[year]</span></span></span></div><div class="line"><a name="line96"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;Either&nbsp;UNIX&nbsp;timestamp,&nbsp;date&nbsp;string,&nbsp;or&nbsp;year&nbsp;(when&nbsp;month&nbsp;and&nbsp;day&nbsp;parameters&nbsp;also&nbsp;provided):</span></span></span></div><div class="line"><a name="line97"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line98"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;-&nbsp;Integer&nbsp;value&nbsp;representing&nbsp;the&nbsp;number&nbsp;of&nbsp;milliseconds&nbsp;since&nbsp;1&nbsp;January&nbsp;1970</span></span></span></div><div class="line"><a name="line99"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;00:00:00&nbsp;UTC&nbsp;(Unix&nbsp;Epoch).</span></span></span></div><div class="line"><a name="line100"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line101"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;-&nbsp;String&nbsp;value&nbsp;representing&nbsp;a&nbsp;date.&nbsp;The&nbsp;string&nbsp;should&nbsp;be&nbsp;in&nbsp;a&nbsp;format&nbsp;recognized</span></span></span></div><div class="line"><a name="line102"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;by&nbsp;the&nbsp;parse&nbsp;method&nbsp;(IETF-compliant&nbsp;</span><span class="markup underline link rfc 1123 hyperlink"><span>RFC&nbsp;1123</span></span><span>&nbsp;timestamps).</span></span></span></div><div class="line"><a name="line103"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line104"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;-&nbsp;Integer&nbsp;value&nbsp;representing&nbsp;the&nbsp;year.&nbsp;For&nbsp;compatibility&nbsp;(in&nbsp;order&nbsp;to&nbsp;avoid&nbsp;the</span></span></span></div><div class="line"><a name="line105"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;Y2K&nbsp;problem),&nbsp;you&nbsp;should&nbsp;always&nbsp;specify&nbsp;the&nbsp;year&nbsp;in&nbsp;full;&nbsp;use&nbsp;1998,&nbsp;rather</span></span></span></div><div class="line"><a name="line106"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;than&nbsp;98.</span></span></span></div><div class="line"><a name="line107"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line108"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@param</span></span><span>&nbsp;{Number}&nbsp;[month]</span></span></span></div><div class="line"><a name="line109"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;Integer&nbsp;value&nbsp;representing&nbsp;the&nbsp;month,&nbsp;beginning&nbsp;with&nbsp;0&nbsp;for&nbsp;January&nbsp;to&nbsp;11</span></span></span></div><div class="line"><a name="line110"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;for&nbsp;December.</span></span></span></div><div class="line"><a name="line111"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@param</span></span><span>&nbsp;{Number}&nbsp;[day]</span></span></span></div><div class="line"><a name="line112"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;Integer&nbsp;value&nbsp;representing&nbsp;the&nbsp;day&nbsp;of&nbsp;the&nbsp;month&nbsp;(1-31).</span></span></span></div><div class="line"><a name="line113"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@param</span></span><span>&nbsp;{Number}&nbsp;[hour]</span></span></span></div><div class="line"><a name="line114"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;Integer&nbsp;value&nbsp;representing&nbsp;the&nbsp;hour&nbsp;of&nbsp;the&nbsp;day&nbsp;(0-23).</span></span></span></div><div class="line"><a name="line115"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@param</span></span><span>&nbsp;{Number}&nbsp;[minute]</span></span></span></div><div class="line"><a name="line116"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;Integer&nbsp;value&nbsp;representing&nbsp;the&nbsp;minute&nbsp;segment&nbsp;(0-59)&nbsp;of&nbsp;a&nbsp;time&nbsp;reading.</span></span></span></div><div class="line"><a name="line117"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@param</span></span><span>&nbsp;{Number}&nbsp;[second]</span></span></span></div><div class="line"><a name="line118"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;Integer&nbsp;value&nbsp;representing&nbsp;the&nbsp;second&nbsp;segment&nbsp;(0-59)&nbsp;of&nbsp;a&nbsp;time&nbsp;reading.</span></span></span></div><div class="line"><a name="line119"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@param</span></span><span>&nbsp;{Number}&nbsp;[millisecond]</span></span></span></div><div class="line"><a name="line120"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;Integer&nbsp;value&nbsp;representing&nbsp;the&nbsp;millisecond&nbsp;segment&nbsp;(0-999)&nbsp;of&nbsp;a&nbsp;time&nbsp;reading.</span></span></span></div><div class="line"><a name="line121"><span class="source js"><span class="comment block documentation js"><span>&nbsp;</span><span class="punctuation definition comment js"><span>*/</span></span></span></span></div><div class="line"><a name="line122"><span class="source js"><span>&nbsp;</span></span></div><div class="line"><a name="line123"><span class="source js"><span>&nbsp;</span></span></div><div class="line"><a name="line124"><span class="source js"><span class="comment line double-slash js"><span class="punctuation definition comment js"><span>//</span></span><span>Methods</span><span>&nbsp;</span></span></span></div><div class="line"><a name="line125"><span class="source js"><span>&nbsp;</span></span></div><div class="line"><a name="line126"><span class="source js"><span class="comment block documentation js"><span class="punctuation definition comment js"><span>/**</span></span></span></span></div><div class="line"><a name="line127"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@method</span></span><span>&nbsp;now</span></span></span></div><div class="line"><a name="line128"><a name="Date-static-method-now"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@static</span></span></span></span></div><div class="line"><a name="line129"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;Returns&nbsp;the&nbsp;numeric&nbsp;value&nbsp;corresponding&nbsp;to&nbsp;the&nbsp;current&nbsp;time.</span></span></span></div><div class="line"><a name="line130"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line131"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;The&nbsp;`now`&nbsp;method&nbsp;returns&nbsp;the&nbsp;milliseconds&nbsp;elapsed&nbsp;since&nbsp;1&nbsp;January&nbsp;1970&nbsp;00:00:00&nbsp;UTC&nbsp;up&nbsp;until&nbsp;now&nbsp;as</span></span></span></div><div class="line"><a name="line132"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;a&nbsp;number.</span></span></span></div><div class="line"><a name="line133"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line134"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;When&nbsp;using&nbsp;`now`&nbsp;to&nbsp;create&nbsp;timestamps&nbsp;or&nbsp;unique&nbsp;IDs,&nbsp;keep&nbsp;in&nbsp;mind&nbsp;that&nbsp;the&nbsp;resolution&nbsp;may&nbsp;be&nbsp;15</span></span></span></div><div class="line"><a name="line135"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;milliseconds&nbsp;on&nbsp;Windows,&nbsp;so&nbsp;you&nbsp;could&nbsp;end&nbsp;up&nbsp;with&nbsp;several&nbsp;equal&nbsp;values&nbsp;if&nbsp;`now`&nbsp;is&nbsp;called&nbsp;multiple</span></span></span></div><div class="line"><a name="line136"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;times&nbsp;within&nbsp;a&nbsp;short&nbsp;time&nbsp;span.</span></span></span></div><div class="line"><a name="line137"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line138"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@return</span></span><span>&nbsp;</span><span class="other meta jsdoc"><span class="entity name type instance jsdoc"><span>{Number}</span></span><span>&nbsp;</span><span class="variable other jsdoc"><span>Returns</span></span><span>&nbsp;</span><span class="other description jsdoc"><span>the&nbsp;number&nbsp;of&nbsp;milliseconds&nbsp;elapsed&nbsp;since&nbsp;1&nbsp;January&nbsp;1970&nbsp;00:00:00&nbsp;UTC.</span></span></span></span></span></div><div class="line"><a name="line139"><span class="source js"><span class="comment block documentation js"><span>&nbsp;</span><span class="punctuation definition comment js"><span>*/</span></span></span></span></div><div class="line"><a name="line140"><span class="source js"><span>&nbsp;</span></span></div><div class="line"><a name="line141"><span class="source js"><span class="comment block documentation js"><span class="punctuation definition comment js"><span>/**</span></span></span></span></div><div class="line"><a name="line142"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@method</span></span><span>&nbsp;parse</span></span></span></div><div class="line"><a name="line143"><a name="Date-static-method-parse"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@static</span></span></span></span></div><div class="line"><a name="line144"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;Parses&nbsp;a&nbsp;string&nbsp;representation&nbsp;of&nbsp;a&nbsp;date,&nbsp;and&nbsp;returns&nbsp;the&nbsp;number&nbsp;of&nbsp;milliseconds</span></span></span></div><div class="line"><a name="line145"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;since&nbsp;January&nbsp;1,&nbsp;1970,&nbsp;00:00:00,&nbsp;local&nbsp;time.</span></span></span></div><div class="line"><a name="line146"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line147"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;The&nbsp;`parse`&nbsp;method&nbsp;takes&nbsp;a&nbsp;date&nbsp;string&nbsp;(such&nbsp;as&nbsp;`&quot;Dec&nbsp;25,&nbsp;1995&quot;`)&nbsp;and&nbsp;returns&nbsp;the&nbsp;number&nbsp;of</span></span></span></div><div class="line"><a name="line148"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;milliseconds&nbsp;since&nbsp;January&nbsp;1,&nbsp;1970,&nbsp;00:00:00&nbsp;UTC.&nbsp;The&nbsp;local&nbsp;time&nbsp;zone&nbsp;is&nbsp;used&nbsp;to&nbsp;interpret</span></span></span></div><div class="line"><a name="line149"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;arguments&nbsp;that&nbsp;do&nbsp;not&nbsp;contain&nbsp;time&nbsp;zone&nbsp;information.&nbsp;This&nbsp;function&nbsp;is&nbsp;useful&nbsp;for&nbsp;setting&nbsp;date</span></span></span></div><div class="line"><a name="line150"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;values&nbsp;based&nbsp;on&nbsp;string&nbsp;values,&nbsp;for&nbsp;example&nbsp;in&nbsp;conjunction&nbsp;with&nbsp;the&nbsp;`setTime`&nbsp;method&nbsp;and&nbsp;the</span></span></span></div><div class="line"><a name="line151"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;{@link&nbsp;Date}&nbsp;object.</span></span></span></div><div class="line"><a name="line152"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line153"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;Given&nbsp;a&nbsp;string&nbsp;representing&nbsp;a&nbsp;time,&nbsp;parse&nbsp;returns&nbsp;the&nbsp;time&nbsp;value.&nbsp;It&nbsp;accepts&nbsp;the&nbsp;IETF&nbsp;standard&nbsp;(RFC</span></span></span></div><div class="line"><a name="line154"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;1123&nbsp;Section&nbsp;5.2.14&nbsp;and&nbsp;elsewhere)&nbsp;date&nbsp;syntax:&nbsp;`&quot;Mon,&nbsp;25&nbsp;Dec&nbsp;1995&nbsp;13:30:00&nbsp;GMT&quot;`.&nbsp;It&nbsp;understands</span></span></span></div><div class="line"><a name="line155"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;the&nbsp;continental&nbsp;US&nbsp;time-zone&nbsp;abbreviations,&nbsp;but&nbsp;for&nbsp;general&nbsp;use,&nbsp;use&nbsp;a&nbsp;time-zone&nbsp;offset,&nbsp;for</span></span></span></div><div class="line"><a name="line156"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;example,&nbsp;`&quot;Mon,&nbsp;25&nbsp;Dec&nbsp;1995&nbsp;13:30:00&nbsp;GMT+0430&quot;`&nbsp;(4&nbsp;hours,&nbsp;30&nbsp;minutes&nbsp;east&nbsp;of&nbsp;the&nbsp;Greenwich</span></span></span></div><div class="line"><a name="line157"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;meridian).&nbsp;If&nbsp;you&nbsp;do&nbsp;not&nbsp;specify&nbsp;a&nbsp;time&nbsp;zone,&nbsp;the&nbsp;local&nbsp;time&nbsp;zone&nbsp;is&nbsp;assumed.&nbsp;GMT&nbsp;and&nbsp;UTC&nbsp;are</span></span></span></div><div class="line"><a name="line158"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;considered&nbsp;equivalent.</span></span></span></div><div class="line"><a name="line159"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line160"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;###&nbsp;Using&nbsp;parse</span></span></span></div><div class="line"><a name="line161"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line162"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;If&nbsp;`IPOdate`&nbsp;is&nbsp;an&nbsp;existing&nbsp;`Date`&nbsp;object,&nbsp;then&nbsp;you&nbsp;can&nbsp;set&nbsp;it&nbsp;to&nbsp;August&nbsp;9,&nbsp;1995&nbsp;(local&nbsp;time)&nbsp;as</span></span></span></div><div class="line"><a name="line163"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;follows:</span></span></span></div><div class="line"><a name="line164"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line165"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;IPOdate.setTime(Date.parse(&quot;Aug&nbsp;9,&nbsp;1995&quot;));</span></span></span></div><div class="line"><a name="line166"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line167"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;Some&nbsp;other&nbsp;examples:</span></span></span></div><div class="line"><a name="line168"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line169"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;Returns&nbsp;807937200000&nbsp;in&nbsp;time&nbsp;zone&nbsp;GMT-0300,&nbsp;and&nbsp;other&nbsp;values&nbsp;in&nbsp;other</span></span></span></div><div class="line"><a name="line170"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;timezones,&nbsp;since&nbsp;the&nbsp;argument&nbsp;does&nbsp;not&nbsp;specify&nbsp;a&nbsp;time&nbsp;zone.</span></span></span></div><div class="line"><a name="line171"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Date.parse(&quot;Aug&nbsp;9,&nbsp;1995&quot;);</span></span></span></div><div class="line"><a name="line172"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line173"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;Returns&nbsp;807926400000&nbsp;no&nbsp;matter&nbsp;the&nbsp;local&nbsp;time&nbsp;zone.</span></span></span></div><div class="line"><a name="line174"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Date.parse(&quot;Wed,&nbsp;09&nbsp;Aug&nbsp;1995&nbsp;00:00:00&nbsp;GMT&quot;);</span></span></span></div><div class="line"><a name="line175"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line176"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;Returns&nbsp;807937200000&nbsp;in&nbsp;timezone&nbsp;GMT-0300,&nbsp;and&nbsp;other&nbsp;values&nbsp;in&nbsp;other</span></span></span></div><div class="line"><a name="line177"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;timezones,&nbsp;since&nbsp;there&nbsp;is&nbsp;no&nbsp;time&nbsp;zone&nbsp;specifier&nbsp;in&nbsp;the&nbsp;argument.</span></span></span></div><div class="line"><a name="line178"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Date.parse(&quot;Wed,&nbsp;09&nbsp;Aug&nbsp;1995&nbsp;00:00:00&quot;);</span></span></span></div><div class="line"><a name="line179"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line180"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;Returns&nbsp;0&nbsp;no&nbsp;matter&nbsp;the&nbsp;local&nbsp;time&nbsp;zone.</span></span></span></div><div class="line"><a name="line181"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Date.parse(&quot;Thu,&nbsp;01&nbsp;Jan&nbsp;1970&nbsp;00:00:00&nbsp;GMT&quot;);</span></span></span></div><div class="line"><a name="line182"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line183"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;Returns&nbsp;14400000&nbsp;in&nbsp;timezone&nbsp;GMT-0400,&nbsp;and&nbsp;other&nbsp;values&nbsp;in&nbsp;other</span></span></span></div><div class="line"><a name="line184"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;timezones,&nbsp;since&nbsp;there&nbsp;is&nbsp;no&nbsp;time&nbsp;zone&nbsp;specifier&nbsp;in&nbsp;the&nbsp;argument.</span></span></span></div><div class="line"><a name="line185"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Date.parse(&quot;Thu,&nbsp;01&nbsp;Jan&nbsp;1970&nbsp;00:00:00&quot;);</span></span></span></div><div class="line"><a name="line186"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line187"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;Returns&nbsp;14400000&nbsp;no&nbsp;matter&nbsp;the&nbsp;local&nbsp;time&nbsp;zone.</span></span></span></div><div class="line"><a name="line188"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Date.parse(&quot;Thu,&nbsp;01&nbsp;Jan&nbsp;1970&nbsp;00:00:00&nbsp;GMT-0400&quot;);</span></span></span></div><div class="line"><a name="line189"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line190"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@param</span></span><span>&nbsp;</span><span class="other meta jsdoc"><span class="entity name type instance jsdoc"><span>{String}</span></span><span>&nbsp;</span><span class="variable other jsdoc"><span>dateString</span></span><span>&nbsp;</span><span class="other description jsdoc"><span>A&nbsp;string&nbsp;representing&nbsp;a&nbsp;date.</span></span></span></span></span></div><div class="line"><a name="line191"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@return</span></span><span>&nbsp;</span><span class="other meta jsdoc"><span class="entity name type instance jsdoc"><span>{Number}</span></span><span>&nbsp;</span><span class="variable other jsdoc"><span>Number</span></span><span>&nbsp;</span><span class="other description jsdoc"><span>of&nbsp;milliseconds&nbsp;since&nbsp;January&nbsp;1,&nbsp;1970,&nbsp;00:00:00,&nbsp;local&nbsp;time.</span></span></span></span></span></div><div class="line"><a name="line192"><span class="source js"><span class="comment block documentation js"><span>&nbsp;</span><span class="punctuation definition comment js"><span>*/</span></span></span></span></div><div class="line"><a name="line193"><span class="source js"><span>&nbsp;</span></span></div><div class="line"><a name="line194"><span class="source js"><span class="comment block documentation js"><span class="punctuation definition comment js"><span>/**</span></span></span></span></div><div class="line"><a name="line195"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@method</span></span><span>&nbsp;UTC</span></span></span></div><div class="line"><a name="line196"><a name="Date-static-method-UTC"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@static</span></span></span></span></div><div class="line"><a name="line197"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;Accepts&nbsp;the&nbsp;same&nbsp;parameters&nbsp;as&nbsp;the&nbsp;longest&nbsp;form&nbsp;of&nbsp;the&nbsp;constructor,&nbsp;and&nbsp;returns</span></span></span></div><div class="line"><a name="line198"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;the&nbsp;number&nbsp;of&nbsp;milliseconds&nbsp;in&nbsp;a&nbsp;`Date`&nbsp;object&nbsp;since&nbsp;January&nbsp;1,&nbsp;1970,&nbsp;00:00:00,</span></span></span></div><div class="line"><a name="line199"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;universal&nbsp;time.</span></span></span></div><div class="line"><a name="line200"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line201"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;`UTC`&nbsp;takes&nbsp;comma-delimited&nbsp;date&nbsp;parameters&nbsp;and&nbsp;returns&nbsp;the&nbsp;number&nbsp;of&nbsp;milliseconds&nbsp;between&nbsp;January</span></span></span></div><div class="line"><a name="line202"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;1,&nbsp;1970,&nbsp;00:00:00,&nbsp;universal&nbsp;time&nbsp;and&nbsp;the&nbsp;time&nbsp;you&nbsp;specified.</span></span></span></div><div class="line"><a name="line203"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line204"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;You&nbsp;should&nbsp;specify&nbsp;a&nbsp;full&nbsp;year&nbsp;for&nbsp;the&nbsp;year;&nbsp;for&nbsp;example,&nbsp;1998.&nbsp;If&nbsp;a&nbsp;year&nbsp;between&nbsp;0&nbsp;and&nbsp;99&nbsp;is</span></span></span></div><div class="line"><a name="line205"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;specified,&nbsp;the&nbsp;method&nbsp;converts&nbsp;the&nbsp;year&nbsp;to&nbsp;a&nbsp;year&nbsp;in&nbsp;the&nbsp;20th&nbsp;century&nbsp;(1900&nbsp;+&nbsp;year);&nbsp;for&nbsp;example,</span></span></span></div><div class="line"><a name="line206"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;if&nbsp;you&nbsp;specify&nbsp;95,&nbsp;the&nbsp;year&nbsp;1995&nbsp;is&nbsp;used.</span></span></span></div><div class="line"><a name="line207"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line208"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;The&nbsp;`UTC`&nbsp;method&nbsp;differs&nbsp;from&nbsp;the&nbsp;`Date`&nbsp;constructor&nbsp;in&nbsp;two&nbsp;ways.</span></span></span></div><div class="line"><a name="line209"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;*&nbsp;&nbsp;&nbsp;`Date.UTC`&nbsp;uses&nbsp;universal&nbsp;time&nbsp;instead&nbsp;of&nbsp;the&nbsp;local&nbsp;time.</span></span></span></div><div class="line"><a name="line210"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;*&nbsp;&nbsp;&nbsp;`Date.UTC`&nbsp;returns&nbsp;a&nbsp;time&nbsp;value&nbsp;as&nbsp;a&nbsp;number&nbsp;instead&nbsp;of&nbsp;creating&nbsp;a&nbsp;`Date`&nbsp;object.</span></span></span></div><div class="line"><a name="line211"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line212"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;If&nbsp;a&nbsp;parameter&nbsp;you&nbsp;specify&nbsp;is&nbsp;outside&nbsp;of&nbsp;the&nbsp;expected&nbsp;range,&nbsp;the&nbsp;`UTC`&nbsp;method&nbsp;updates&nbsp;the&nbsp;other</span></span></span></div><div class="line"><a name="line213"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;parameters&nbsp;to&nbsp;allow&nbsp;for&nbsp;your&nbsp;number.&nbsp;For&nbsp;example,&nbsp;if&nbsp;you&nbsp;use&nbsp;15&nbsp;for&nbsp;month,&nbsp;the&nbsp;year&nbsp;will&nbsp;be</span></span></span></div><div class="line"><a name="line214"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;incremented&nbsp;by&nbsp;1&nbsp;(year&nbsp;+&nbsp;1),&nbsp;and&nbsp;3&nbsp;will&nbsp;be&nbsp;used&nbsp;for&nbsp;the&nbsp;month.</span></span></span></div><div class="line"><a name="line215"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line216"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;Because&nbsp;`UTC`&nbsp;is&nbsp;a&nbsp;static&nbsp;method&nbsp;of&nbsp;`Date`,&nbsp;you&nbsp;always&nbsp;use&nbsp;it&nbsp;as&nbsp;`Date.UTC()`,&nbsp;rather&nbsp;than&nbsp;as&nbsp;a</span></span></span></div><div class="line"><a name="line217"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;method&nbsp;of&nbsp;a&nbsp;`Date`&nbsp;object&nbsp;you&nbsp;created.</span></span></span></div><div class="line"><a name="line218"><span class="source js"><span class="comment block documentation js"><span>*</span></span></span></div><div class="line"><a name="line219"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;The&nbsp;following&nbsp;statement&nbsp;creates&nbsp;a&nbsp;`Date`&nbsp;object&nbsp;using&nbsp;GMT&nbsp;instead&nbsp;of&nbsp;local&nbsp;time:</span></span></span></div><div class="line"><a name="line220"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line221"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;gmtDate&nbsp;=&nbsp;new&nbsp;Date(Date.UTC(96,&nbsp;11,&nbsp;1,&nbsp;0,&nbsp;0,&nbsp;0));</span></span></span></div><div class="line"><a name="line222"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line223"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@param</span></span><span>&nbsp;</span><span class="other meta jsdoc"><span class="entity name type instance jsdoc"><span>{Number}</span></span><span>&nbsp;</span><span class="variable other jsdoc"><span>year</span></span><span>&nbsp;</span><span class="other description jsdoc"><span>A&nbsp;year&nbsp;after&nbsp;1900.</span></span></span></span></span></div><div class="line"><a name="line224"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@param</span></span><span>&nbsp;</span><span class="other meta jsdoc"><span class="entity name type instance jsdoc"><span>{Number}</span></span><span>&nbsp;</span><span class="variable other jsdoc"><span>month</span></span><span>&nbsp;</span><span class="other description jsdoc"><span>An&nbsp;integer&nbsp;between&nbsp;0&nbsp;and&nbsp;11&nbsp;representing&nbsp;the&nbsp;month.</span></span></span></span></span></div><div class="line"><a name="line225"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@param</span></span><span>&nbsp;</span><span class="other meta jsdoc"><span class="entity name type instance jsdoc"><span>{Number}</span></span><span>&nbsp;</span><span class="variable other jsdoc"><span>date</span></span><span>&nbsp;</span><span class="other description jsdoc"><span>An&nbsp;integer&nbsp;between&nbsp;1&nbsp;and&nbsp;31&nbsp;representing&nbsp;the&nbsp;day&nbsp;of&nbsp;the&nbsp;month.</span></span></span></span></span></div><div class="line"><a name="line226"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@param</span></span><span>&nbsp;</span><span class="other meta jsdoc"><span class="entity name type instance jsdoc"><span>{Number}</span></span><span>&nbsp;</span><span class="variable other jsdoc"><span>hrs</span></span><span>&nbsp;</span><span class="other description jsdoc"><span>An&nbsp;integer&nbsp;between&nbsp;0&nbsp;and&nbsp;23&nbsp;representing&nbsp;the&nbsp;hours.</span></span></span></span></span></div><div class="line"><a name="line227"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@param</span></span><span>&nbsp;</span><span class="other meta jsdoc"><span class="entity name type instance jsdoc"><span>{Number}</span></span><span>&nbsp;</span><span class="variable other jsdoc"><span>min</span></span><span>&nbsp;</span><span class="other description jsdoc"><span>An&nbsp;integer&nbsp;between&nbsp;0&nbsp;and&nbsp;59&nbsp;representing&nbsp;the&nbsp;minutes.</span></span></span></span></span></div><div class="line"><a name="line228"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@param</span></span><span>&nbsp;</span><span class="other meta jsdoc"><span class="entity name type instance jsdoc"><span>{Number}</span></span><span>&nbsp;</span><span class="variable other jsdoc"><span>sec</span></span><span>&nbsp;</span><span class="other description jsdoc"><span>An&nbsp;integer&nbsp;between&nbsp;0&nbsp;and&nbsp;59&nbsp;representing&nbsp;the&nbsp;seconds.</span></span></span></span></span></div><div class="line"><a name="line229"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@param</span></span><span>&nbsp;</span><span class="other meta jsdoc"><span class="entity name type instance jsdoc"><span>{Number}</span></span><span>&nbsp;</span><span class="variable other jsdoc"><span>ms</span></span><span>&nbsp;</span><span class="other description jsdoc"><span>An&nbsp;integer&nbsp;between&nbsp;0&nbsp;and&nbsp;999&nbsp;representing&nbsp;the&nbsp;milliseconds.</span></span></span></span></span></div><div class="line"><a name="line230"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@return</span></span><span>&nbsp;</span><span class="other meta jsdoc"><span class="entity name type instance jsdoc"><span>{Number}</span></span><span>&nbsp;</span><span class="variable other jsdoc"><span>Number</span></span><span>&nbsp;</span><span class="other description jsdoc"><span>of&nbsp;milliseconds&nbsp;since&nbsp;January&nbsp;1,&nbsp;1970,&nbsp;00:00:00,&nbsp;universal&nbsp;time.</span></span></span></span></span></div><div class="line"><a name="line231"><span class="source js"><span class="comment block documentation js"><span>&nbsp;</span><span class="punctuation definition comment js"><span>*/</span></span></span></span></div><div class="line"><a name="line232"><span class="source js"><span>&nbsp;</span></span></div><div class="line"><a name="line233"><span class="source js"><span class="comment line double-slash js"><span class="punctuation definition comment js"><span>//</span></span><span>Methods</span><span>&nbsp;</span></span></span></div><div class="line"><a name="line234"><span class="source js"><span>&nbsp;</span></span></div><div class="line"><a name="line235"><span class="source js"><span class="comment block documentation js"><span class="punctuation definition comment js"><span>/**</span></span></span></span></div><div class="line"><a name="line236"><a name="Date-method-getDate"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@method</span></span><span>&nbsp;getDate</span></span></span></div><div class="line"><a name="line237"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;Returns&nbsp;the&nbsp;day&nbsp;of&nbsp;the&nbsp;month&nbsp;for&nbsp;the&nbsp;specified&nbsp;date&nbsp;according&nbsp;to&nbsp;local&nbsp;time.</span></span></span></div><div class="line"><a name="line238"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line239"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;The&nbsp;second&nbsp;statement&nbsp;below&nbsp;assigns&nbsp;the&nbsp;value&nbsp;25&nbsp;to&nbsp;the&nbsp;variable&nbsp;`day`,&nbsp;based&nbsp;on&nbsp;the&nbsp;value&nbsp;of&nbsp;the</span></span></span></div><div class="line"><a name="line240"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;`Date`&nbsp;object&nbsp;`Xmas95`.</span></span></span></div><div class="line"><a name="line241"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line242"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Xmas95&nbsp;=&nbsp;new&nbsp;Date(&quot;December&nbsp;25,&nbsp;1995&nbsp;23:15:00&quot;)</span></span></span></div><div class="line"><a name="line243"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;day&nbsp;=&nbsp;Xmas95.getDate()</span></span></span></div><div class="line"><a name="line244"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line245"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@return</span></span><span>&nbsp;</span><span class="other meta jsdoc"><span class="entity name type instance jsdoc"><span>{Number}</span></span><span>&nbsp;</span><span class="variable other jsdoc"><span>Value</span></span><span>&nbsp;</span><span class="other description jsdoc"><span>between&nbsp;1&nbsp;and&nbsp;31.</span></span></span></span></span></div><div class="line"><a name="line246"><span class="source js"><span class="comment block documentation js"><span>&nbsp;</span><span class="punctuation definition comment js"><span>*/</span></span></span></span></div><div class="line"><a name="line247"><span class="source js"><span>&nbsp;</span></span></div><div class="line"><a name="line248"><span class="source js"><span class="comment block documentation js"><span class="punctuation definition comment js"><span>/**</span></span></span></span></div><div class="line"><a name="line249"><a name="Date-method-getDay"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@method</span></span><span>&nbsp;getDay</span></span></span></div><div class="line"><a name="line250"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;Returns&nbsp;the&nbsp;day&nbsp;of&nbsp;the&nbsp;week&nbsp;for&nbsp;the&nbsp;specified&nbsp;date&nbsp;according&nbsp;to&nbsp;local&nbsp;time.</span></span></span></div><div class="line"><a name="line251"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line252"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;The&nbsp;value&nbsp;returned&nbsp;by&nbsp;`getDay`&nbsp;is&nbsp;an&nbsp;integer&nbsp;corresponding&nbsp;to&nbsp;the&nbsp;day&nbsp;of&nbsp;the&nbsp;week:&nbsp;0&nbsp;for&nbsp;Sunday,&nbsp;1</span></span></span></div><div class="line"><a name="line253"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;for&nbsp;Monday,&nbsp;2&nbsp;for&nbsp;Tuesday,&nbsp;and&nbsp;so&nbsp;on.</span></span></span></div><div class="line"><a name="line254"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line255"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;The&nbsp;second&nbsp;statement&nbsp;below&nbsp;assigns&nbsp;the&nbsp;value&nbsp;1&nbsp;to&nbsp;`weekday`,&nbsp;based&nbsp;on&nbsp;the&nbsp;value&nbsp;of&nbsp;the&nbsp;`Date`</span></span></span></div><div class="line"><a name="line256"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;object&nbsp;`Xmas95`.&nbsp;December&nbsp;25,&nbsp;1995,&nbsp;is&nbsp;a&nbsp;Monday.</span></span></span></div><div class="line"><a name="line257"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line258"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Xmas95&nbsp;=&nbsp;new&nbsp;Date(&quot;December&nbsp;25,&nbsp;1995&nbsp;23:15:00&quot;);</span></span></span></div><div class="line"><a name="line259"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;weekday&nbsp;=&nbsp;Xmas95.getDay();</span></span></span></div><div class="line"><a name="line260"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line261"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@return</span></span><span>&nbsp;</span><span class="other meta jsdoc"><span class="entity name type instance jsdoc"><span>{Number}</span></span><span>&nbsp;</span><span class="variable other jsdoc"><span>A</span></span><span>&nbsp;</span><span class="other description jsdoc"><span>numeric&nbsp;representation&nbsp;of&nbsp;the&nbsp;day&nbsp;from&nbsp;Sunday&nbsp;(0)&nbsp;to</span></span></span></span></span></div><div class="line"><a name="line262"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;Saturday&nbsp;(6).</span></span></span></div><div class="line"><a name="line263"><span class="source js"><span class="comment block documentation js"><span>&nbsp;</span><span class="punctuation definition comment js"><span>*/</span></span></span></span></div><div class="line"><a name="line264"><span class="source js"><span>&nbsp;</span></span></div><div class="line"><a name="line265"><span class="source js"><span class="comment block documentation js"><span class="punctuation definition comment js"><span>/**</span></span></span></span></div><div class="line"><a name="line266"><a name="Date-method-getFullYear"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@method</span></span><span>&nbsp;getFullYear</span></span></span></div><div class="line"><a name="line267"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;Returns&nbsp;the&nbsp;year&nbsp;of&nbsp;the&nbsp;specified&nbsp;date&nbsp;according&nbsp;to&nbsp;local&nbsp;time.</span></span></span></div><div class="line"><a name="line268"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line269"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;The&nbsp;value&nbsp;returned&nbsp;by&nbsp;`getFullYear`&nbsp;is&nbsp;an&nbsp;absolute&nbsp;number.&nbsp;For&nbsp;dates&nbsp;between&nbsp;the&nbsp;years&nbsp;1000&nbsp;and</span></span></span></div><div class="line"><a name="line270"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;9999,&nbsp;`getFullYear`&nbsp;returns&nbsp;a&nbsp;four-digit&nbsp;number,&nbsp;for&nbsp;example,&nbsp;1995.&nbsp;Use&nbsp;this&nbsp;function&nbsp;to&nbsp;make&nbsp;sure</span></span></span></div><div class="line"><a name="line271"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;a&nbsp;year&nbsp;is&nbsp;compliant&nbsp;with&nbsp;years&nbsp;after&nbsp;2000.</span></span></span></div><div class="line"><a name="line272"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line273"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;Use&nbsp;this&nbsp;method&nbsp;instead&nbsp;of&nbsp;the&nbsp;`getYear`&nbsp;method.</span></span></span></div><div class="line"><a name="line274"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line275"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;The&nbsp;following&nbsp;example&nbsp;assigns&nbsp;the&nbsp;four-digit&nbsp;value&nbsp;of&nbsp;the&nbsp;current&nbsp;year&nbsp;to&nbsp;the&nbsp;variable&nbsp;yr.</span></span></span></div><div class="line"><a name="line276"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line277"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;today&nbsp;=&nbsp;new&nbsp;Date();</span></span></span></div><div class="line"><a name="line278"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;yr&nbsp;=&nbsp;today.getFullYear();</span></span></span></div><div class="line"><a name="line279"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line280"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@return</span></span><span>&nbsp;</span><span class="other meta jsdoc"><span class="entity name type instance jsdoc"><span>{Number}</span></span><span>&nbsp;</span><span class="variable other jsdoc"><span>Four</span></span><span>&nbsp;</span><span class="other description jsdoc"><span>digit&nbsp;representation&nbsp;of&nbsp;the&nbsp;year.</span></span></span></span></span></div><div class="line"><a name="line281"><span class="source js"><span class="comment block documentation js"><span>&nbsp;</span><span class="punctuation definition comment js"><span>*/</span></span></span></span></div><div class="line"><a name="line282"><span class="source js"><span>&nbsp;</span></span></div><div class="line"><a name="line283"><span class="source js"><span class="comment block documentation js"><span class="punctuation definition comment js"><span>/**</span></span></span></span></div><div class="line"><a name="line284"><a name="Date-method-getHours"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@method</span></span><span>&nbsp;getHours</span></span></span></div><div class="line"><a name="line285"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;Returns&nbsp;the&nbsp;hour&nbsp;for&nbsp;the&nbsp;specified&nbsp;date&nbsp;according&nbsp;to&nbsp;local&nbsp;time.</span></span></span></div><div class="line"><a name="line286"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line287"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;The&nbsp;second&nbsp;statement&nbsp;below&nbsp;assigns&nbsp;the&nbsp;value&nbsp;23&nbsp;to&nbsp;the&nbsp;variable&nbsp;`hours`,&nbsp;based&nbsp;on&nbsp;the&nbsp;value&nbsp;of&nbsp;the</span></span></span></div><div class="line"><a name="line288"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;`Date`&nbsp;object&nbsp;`Xmas95`.</span></span></span></div><div class="line"><a name="line289"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line290"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Xmas95&nbsp;=&nbsp;new&nbsp;Date(&quot;December&nbsp;25,&nbsp;1995&nbsp;23:15:00&quot;)</span></span></span></div><div class="line"><a name="line291"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;hours&nbsp;=&nbsp;Xmas95.getHours()</span></span></span></div><div class="line"><a name="line292"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line293"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@return</span></span><span>&nbsp;</span><span class="other meta jsdoc"><span class="entity name type instance jsdoc"><span>{Number}</span></span><span>&nbsp;</span><span class="variable other jsdoc"><span>Value</span></span><span>&nbsp;</span><span class="other description jsdoc"><span>between&nbsp;0&nbsp;and&nbsp;23,&nbsp;using&nbsp;24-hour&nbsp;clock.</span></span></span></span></span></div><div class="line"><a name="line294"><span class="source js"><span class="comment block documentation js"><span>&nbsp;</span><span class="punctuation definition comment js"><span>*/</span></span></span></span></div><div class="line"><a name="line295"><span class="source js"><span>&nbsp;</span></span></div><div class="line"><a name="line296"><span class="source js"><span class="comment block documentation js"><span class="punctuation definition comment js"><span>/**</span></span></span></span></div><div class="line"><a name="line297"><a name="Date-method-getMilliseconds"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@method</span></span><span>&nbsp;getMilliseconds</span></span></span></div><div class="line"><a name="line298"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;Returns&nbsp;the&nbsp;milliseconds&nbsp;in&nbsp;the&nbsp;specified&nbsp;date&nbsp;according&nbsp;to&nbsp;local&nbsp;time.</span></span></span></div><div class="line"><a name="line299"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line300"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;The&nbsp;following&nbsp;example&nbsp;assigns&nbsp;the&nbsp;milliseconds&nbsp;portion&nbsp;of&nbsp;the&nbsp;current&nbsp;time&nbsp;to&nbsp;the&nbsp;variable&nbsp;ms.</span></span></span></div><div class="line"><a name="line301"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line302"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;ms;</span></span></span></div><div class="line"><a name="line303"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Today&nbsp;=&nbsp;new&nbsp;Date();</span></span></span></div><div class="line"><a name="line304"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ms&nbsp;=&nbsp;Today.getMilliseconds();</span></span></span></div><div class="line"><a name="line305"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line306"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@return</span></span><span>&nbsp;</span><span class="other meta jsdoc"><span class="entity name type instance jsdoc"><span>{Number}</span></span><span>&nbsp;</span><span class="variable other jsdoc"><span>A</span></span><span>&nbsp;</span><span class="other description jsdoc"><span>number&nbsp;between&nbsp;0&nbsp;and&nbsp;999.</span></span></span></span></span></div><div class="line"><a name="line307"><span class="source js"><span class="comment block documentation js"><span>&nbsp;</span><span class="punctuation definition comment js"><span>*/</span></span></span></span></div><div class="line"><a name="line308"><span class="source js"><span>&nbsp;</span></span></div><div class="line"><a name="line309"><span class="source js"><span class="comment block documentation js"><span class="punctuation definition comment js"><span>/**</span></span></span></span></div><div class="line"><a name="line310"><a name="Date-method-getMinutes"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@method</span></span><span>&nbsp;getMinutes</span></span></span></div><div class="line"><a name="line311"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;Returns&nbsp;the&nbsp;minutes&nbsp;in&nbsp;the&nbsp;specified&nbsp;date&nbsp;according&nbsp;to&nbsp;local&nbsp;time.</span></span></span></div><div class="line"><a name="line312"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line313"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;The&nbsp;second&nbsp;statement&nbsp;below&nbsp;assigns&nbsp;the&nbsp;value&nbsp;15&nbsp;to&nbsp;the&nbsp;variable&nbsp;`minutes`,&nbsp;based&nbsp;on&nbsp;the&nbsp;value&nbsp;of</span></span></span></div><div class="line"><a name="line314"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;the&nbsp;`Date`&nbsp;object&nbsp;`Xmas95`.</span></span></span></div><div class="line"><a name="line315"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line316"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Xmas95&nbsp;=&nbsp;new&nbsp;Date(&quot;December&nbsp;25,&nbsp;1995&nbsp;23:15:00&quot;)</span></span></span></div><div class="line"><a name="line317"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;minutes&nbsp;=&nbsp;Xmas95.getMinutes()</span></span></span></div><div class="line"><a name="line318"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line319"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@return</span></span><span>&nbsp;</span><span class="other meta jsdoc"><span class="entity name type instance jsdoc"><span>{Number}</span></span><span>&nbsp;</span><span class="variable other jsdoc"><span>Value</span></span><span>&nbsp;</span><span class="other description jsdoc"><span>between&nbsp;0&nbsp;and&nbsp;59.</span></span></span></span></span></div><div class="line"><a name="line320"><span class="source js"><span class="comment block documentation js"><span>&nbsp;</span><span class="punctuation definition comment js"><span>*/</span></span></span></span></div><div class="line"><a name="line321"><span class="source js"><span>&nbsp;</span></span></div><div class="line"><a name="line322"><span class="source js"><span class="comment block documentation js"><span class="punctuation definition comment js"><span>/**</span></span></span></span></div><div class="line"><a name="line323"><a name="Date-method-getMonth"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@method</span></span><span>&nbsp;getMonth</span></span></span></div><div class="line"><a name="line324"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;Returns&nbsp;the&nbsp;month&nbsp;in&nbsp;the&nbsp;specified&nbsp;date&nbsp;according&nbsp;to&nbsp;local&nbsp;time.</span></span></span></div><div class="line"><a name="line325"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line326"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;The&nbsp;second&nbsp;statement&nbsp;below&nbsp;assigns&nbsp;the&nbsp;value&nbsp;11&nbsp;to&nbsp;the&nbsp;variable&nbsp;`month`,&nbsp;based&nbsp;on&nbsp;the&nbsp;value&nbsp;of&nbsp;the</span></span></span></div><div class="line"><a name="line327"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;`Date`&nbsp;object&nbsp;`Xmas95`.</span></span></span></div><div class="line"><a name="line328"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line329"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Xmas95&nbsp;=&nbsp;new&nbsp;Date(&quot;December&nbsp;25,&nbsp;1995&nbsp;23:15:00&quot;)</span></span></span></div><div class="line"><a name="line330"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;month&nbsp;=&nbsp;Xmas95.getMonth()</span></span></span></div><div class="line"><a name="line331"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line332"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@return</span></span><span>&nbsp;</span><span class="other meta jsdoc"><span class="entity name type instance jsdoc"><span>{Number}</span></span><span>&nbsp;</span><span class="variable other jsdoc"><span>An</span></span><span>&nbsp;</span><span class="other description jsdoc"><span>integer&nbsp;between&nbsp;0&nbsp;and&nbsp;11.&nbsp;0&nbsp;corresponds&nbsp;to&nbsp;January,&nbsp;1&nbsp;to&nbsp;February,&nbsp;and&nbsp;so&nbsp;on.</span></span></span></span></span></div><div class="line"><a name="line333"><span class="source js"><span class="comment block documentation js"><span>&nbsp;</span><span class="punctuation definition comment js"><span>*/</span></span></span></span></div><div class="line"><a name="line334"><span class="source js"><span>&nbsp;</span></span></div><div class="line"><a name="line335"><span class="source js"><span class="comment block documentation js"><span class="punctuation definition comment js"><span>/**</span></span></span></span></div><div class="line"><a name="line336"><a name="Date-method-getSeconds"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@method</span></span><span>&nbsp;getSeconds</span></span></span></div><div class="line"><a name="line337"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;Returns&nbsp;the&nbsp;seconds&nbsp;in&nbsp;the&nbsp;specified&nbsp;date&nbsp;according&nbsp;to&nbsp;local&nbsp;time.</span></span></span></div><div class="line"><a name="line338"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line339"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;The&nbsp;second&nbsp;statement&nbsp;below&nbsp;assigns&nbsp;the&nbsp;value&nbsp;30&nbsp;to&nbsp;the&nbsp;variable&nbsp;`secs`,&nbsp;based&nbsp;on&nbsp;the&nbsp;value&nbsp;of&nbsp;the</span></span></span></div><div class="line"><a name="line340"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;`Date`&nbsp;object&nbsp;`Xmas95`.</span></span></span></div><div class="line"><a name="line341"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line342"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Xmas95&nbsp;=&nbsp;new&nbsp;Date(&quot;December&nbsp;25,&nbsp;1995&nbsp;23:15:30&quot;)</span></span></span></div><div class="line"><a name="line343"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;secs&nbsp;=&nbsp;Xmas95.getSeconds()</span></span></span></div><div class="line"><a name="line344"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line345"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@return</span></span><span>&nbsp;</span><span class="other meta jsdoc"><span class="entity name type instance jsdoc"><span>{Number}</span></span><span>&nbsp;</span><span class="variable other jsdoc"><span>Value</span></span><span>&nbsp;</span><span class="other description jsdoc"><span>between&nbsp;0&nbsp;and&nbsp;59.</span></span></span></span></span></div><div class="line"><a name="line346"><span class="source js"><span class="comment block documentation js"><span>&nbsp;</span><span class="punctuation definition comment js"><span>*/</span></span></span></span></div><div class="line"><a name="line347"><span class="source js"><span>&nbsp;</span></span></div><div class="line"><a name="line348"><span class="source js"><span class="comment block documentation js"><span class="punctuation definition comment js"><span>/**</span></span></span></span></div><div class="line"><a name="line349"><a name="Date-method-getTime"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@method</span></span><span>&nbsp;getTime</span></span></span></div><div class="line"><a name="line350"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;Returns&nbsp;the&nbsp;numeric&nbsp;value&nbsp;corresponding&nbsp;to&nbsp;the&nbsp;time&nbsp;for&nbsp;the&nbsp;specified&nbsp;date&nbsp;according&nbsp;to</span></span></span></div><div class="line"><a name="line351"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;universal&nbsp;time.</span></span></span></div><div class="line"><a name="line352"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line353"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;The&nbsp;value&nbsp;returned&nbsp;by&nbsp;the&nbsp;`getTime`&nbsp;method&nbsp;is&nbsp;the&nbsp;number&nbsp;of&nbsp;milliseconds&nbsp;since&nbsp;1&nbsp;January&nbsp;1970</span></span></span></div><div class="line"><a name="line354"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;00:00:00&nbsp;UTC.&nbsp;You&nbsp;can&nbsp;use&nbsp;this&nbsp;method&nbsp;to&nbsp;help&nbsp;assign&nbsp;a&nbsp;date&nbsp;and&nbsp;time&nbsp;to&nbsp;another&nbsp;`Date`&nbsp;object.</span></span></span></div><div class="line"><a name="line355"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line356"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;This&nbsp;method&nbsp;is&nbsp;functionally&nbsp;equivalent&nbsp;to&nbsp;the&nbsp;`valueOf`&nbsp;method.</span></span></span></div><div class="line"><a name="line357"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line358"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;Using&nbsp;getTime&nbsp;for&nbsp;copying&nbsp;dates</span></span></span></div><div class="line"><a name="line359"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line360"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;Constructing&nbsp;a&nbsp;date&nbsp;object&nbsp;with&nbsp;the&nbsp;identical&nbsp;time&nbsp;value.</span></span></span></div><div class="line"><a name="line361"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line362"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;birthday&nbsp;=&nbsp;new&nbsp;Date(1994,&nbsp;12,&nbsp;10);</span></span></span></div><div class="line"><a name="line363"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;copy&nbsp;=&nbsp;new&nbsp;Date();</span></span></span></div><div class="line"><a name="line364"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;copy.setTime(birthday.getTime());</span></span></span></div><div class="line"><a name="line365"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line366"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;Measuring&nbsp;execution&nbsp;time</span></span></span></div><div class="line"><a name="line367"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line368"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;Subtracting&nbsp;two&nbsp;subsequent&nbsp;getTime&nbsp;calls&nbsp;on&nbsp;newly&nbsp;generated&nbsp;Date&nbsp;objects,&nbsp;give&nbsp;the&nbsp;time&nbsp;span</span></span></span></div><div class="line"><a name="line369"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;between&nbsp;these&nbsp;two&nbsp;calls.&nbsp;This&nbsp;can&nbsp;be&nbsp;used&nbsp;to&nbsp;calculate&nbsp;the&nbsp;executing&nbsp;time&nbsp;of&nbsp;some&nbsp;operations.</span></span></span></div><div class="line"><a name="line370"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line371"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;end,&nbsp;start;</span></span></span></div><div class="line"><a name="line372"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line373"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;start&nbsp;=&nbsp;new&nbsp;Date();</span></span></span></div><div class="line"><a name="line374"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for&nbsp;(var&nbsp;i&nbsp;=&nbsp;0;&nbsp;i&nbsp;&lt;&nbsp;1000;&nbsp;i++)</span></span></span></div><div class="line"><a name="line375"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Math.sqrt(i);</span></span></span></div><div class="line"><a name="line376"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;end&nbsp;=&nbsp;new&nbsp;Date();</span></span></span></div><div class="line"><a name="line377"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line378"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(&quot;Operation&nbsp;took&nbsp;&quot;&nbsp;+&nbsp;(end.getTime()&nbsp;-&nbsp;start.getTime())&nbsp;+&nbsp;&quot;&nbsp;msec&quot;);</span></span></span></div><div class="line"><a name="line379"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line380"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@return</span></span><span>&nbsp;</span><span class="other meta jsdoc"><span class="entity name type instance jsdoc"><span>{Number}</span></span><span>&nbsp;</span><span class="variable other jsdoc"><span>Number</span></span><span>&nbsp;</span><span class="other description jsdoc"><span>of&nbsp;milliseconds&nbsp;since&nbsp;1/1/1970&nbsp;(GMT).</span></span></span></span></span></div><div class="line"><a name="line381"><span class="source js"><span class="comment block documentation js"><span>&nbsp;</span><span class="punctuation definition comment js"><span>*/</span></span></span></span></div><div class="line"><a name="line382"><span class="source js"><span>&nbsp;</span></span></div><div class="line"><a name="line383"><span class="source js"><span class="comment block documentation js"><span class="punctuation definition comment js"><span>/**</span></span></span></span></div><div class="line"><a name="line384"><a name="Date-method-getTimezoneOffset"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@method</span></span><span>&nbsp;getTimezoneOffset</span></span></span></div><div class="line"><a name="line385"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;Returns&nbsp;the&nbsp;time-zone&nbsp;offset&nbsp;from&nbsp;UTC,&nbsp;in&nbsp;minutes,&nbsp;for&nbsp;the&nbsp;current&nbsp;locale.</span></span></span></div><div class="line"><a name="line386"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line387"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;The&nbsp;time-zone&nbsp;offset&nbsp;is&nbsp;the&nbsp;difference,&nbsp;in&nbsp;minutes,&nbsp;between&nbsp;UTC&nbsp;and&nbsp;local&nbsp;time.&nbsp;Note&nbsp;that&nbsp;this</span></span></span></div><div class="line"><a name="line388"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;means&nbsp;that&nbsp;the&nbsp;offset&nbsp;is&nbsp;positive&nbsp;if&nbsp;the&nbsp;local&nbsp;timezone&nbsp;is&nbsp;behind&nbsp;UTC&nbsp;and&nbsp;negative&nbsp;if&nbsp;it&nbsp;is&nbsp;ahead.</span></span></span></div><div class="line"><a name="line389"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;For&nbsp;example,&nbsp;if&nbsp;your&nbsp;time&nbsp;zone&nbsp;is&nbsp;UTC+10&nbsp;(Australian&nbsp;Eastern&nbsp;Standard&nbsp;Time),&nbsp;-600&nbsp;will&nbsp;be&nbsp;returned.</span></span></span></div><div class="line"><a name="line390"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;Daylight&nbsp;savings&nbsp;time&nbsp;prevents&nbsp;this&nbsp;value&nbsp;from&nbsp;being&nbsp;a&nbsp;constant&nbsp;even&nbsp;for&nbsp;a&nbsp;given&nbsp;locale</span></span></span></div><div class="line"><a name="line391"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line392"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;x&nbsp;=&nbsp;new&nbsp;Date()</span></span></span></div><div class="line"><a name="line393"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;currentTimeZoneOffsetInHours&nbsp;=&nbsp;x.getTimezoneOffset()/60</span></span></span></div><div class="line"><a name="line394"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line395"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@return</span></span><span>&nbsp;</span><span class="other meta jsdoc"><span class="entity name type instance jsdoc"><span>{Number}</span></span><span>&nbsp;</span><span class="variable other jsdoc"><span>Minutes</span></span><span>&nbsp;</span><span class="other description jsdoc"><span>between&nbsp;GMT&nbsp;and&nbsp;local&nbsp;time.</span></span></span></span></span></div><div class="line"><a name="line396"><span class="source js"><span class="comment block documentation js"><span>&nbsp;</span><span class="punctuation definition comment js"><span>*/</span></span></span></span></div><div class="line"><a name="line397"><span class="source js"><span>&nbsp;</span></span></div><div class="line"><a name="line398"><span class="source js"><span class="comment block documentation js"><span class="punctuation definition comment js"><span>/**</span></span></span></span></div><div class="line"><a name="line399"><a name="Date-method-getUTCDate"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@method</span></span><span>&nbsp;getUTCDate</span></span></span></div><div class="line"><a name="line400"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;Returns&nbsp;the&nbsp;day&nbsp;(date)&nbsp;of&nbsp;the&nbsp;month&nbsp;in&nbsp;the&nbsp;specified&nbsp;date&nbsp;according&nbsp;to&nbsp;universal&nbsp;time.</span></span></span></div><div class="line"><a name="line401"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line402"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;The&nbsp;following&nbsp;example&nbsp;assigns&nbsp;the&nbsp;day&nbsp;portion&nbsp;of&nbsp;the&nbsp;current&nbsp;date&nbsp;to&nbsp;the&nbsp;variable&nbsp;`d`.</span></span></span></div><div class="line"><a name="line403"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line404"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;d;</span></span></span></div><div class="line"><a name="line405"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Today&nbsp;=&nbsp;new&nbsp;Date();</span></span></span></div><div class="line"><a name="line406"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;d&nbsp;=&nbsp;Today.getUTCDate();</span></span></span></div><div class="line"><a name="line407"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line408"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@return</span></span><span>&nbsp;</span><span class="other meta jsdoc"><span class="entity name type instance jsdoc"><span>{Number}</span></span><span>&nbsp;</span><span class="variable other jsdoc"><span>Integer</span></span><span>&nbsp;</span><span class="other description jsdoc"><span>between&nbsp;1&nbsp;and&nbsp;31&nbsp;representing&nbsp;the&nbsp;day.</span></span></span></span></span></div><div class="line"><a name="line409"><span class="source js"><span class="comment block documentation js"><span>&nbsp;</span><span class="punctuation definition comment js"><span>*/</span></span></span></span></div><div class="line"><a name="line410"><span class="source js"><span>&nbsp;</span></span></div><div class="line"><a name="line411"><span class="source js"><span class="comment block documentation js"><span class="punctuation definition comment js"><span>/**</span></span></span></span></div><div class="line"><a name="line412"><a name="Date-method-getUTCDay"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@method</span></span><span>&nbsp;getUTCDay</span></span></span></div><div class="line"><a name="line413"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;Returns&nbsp;the&nbsp;day&nbsp;of&nbsp;the&nbsp;week&nbsp;in&nbsp;the&nbsp;specified&nbsp;date&nbsp;according&nbsp;to&nbsp;universal&nbsp;time.</span></span></span></div><div class="line"><a name="line414"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line415"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;The&nbsp;following&nbsp;example&nbsp;assigns&nbsp;the&nbsp;weekday&nbsp;portion&nbsp;of&nbsp;the&nbsp;current&nbsp;date&nbsp;to&nbsp;the&nbsp;variable&nbsp;`weekday`.</span></span></span></div><div class="line"><a name="line416"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line417"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;weekday;</span></span></span></div><div class="line"><a name="line418"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Today&nbsp;=&nbsp;new&nbsp;Date()</span></span></span></div><div class="line"><a name="line419"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;weekday&nbsp;=&nbsp;Today.getUTCDay()</span></span></span></div><div class="line"><a name="line420"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line421"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@return</span></span><span>&nbsp;</span><span class="other meta jsdoc"><span class="entity name type instance jsdoc"><span>{Number}</span></span><span>&nbsp;</span><span class="variable other jsdoc"><span>A</span></span><span>&nbsp;</span><span class="other description jsdoc"><span>numeric&nbsp;representation&nbsp;of&nbsp;the&nbsp;day&nbsp;from&nbsp;Sunday&nbsp;(0)&nbsp;to</span></span></span></span></span></div><div class="line"><a name="line422"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;Saturday&nbsp;(6).</span></span></span></div><div class="line"><a name="line423"><span class="source js"><span class="comment block documentation js"><span>&nbsp;</span><span class="punctuation definition comment js"><span>*/</span></span></span></span></div><div class="line"><a name="line424"><span class="source js"><span>&nbsp;</span></span></div><div class="line"><a name="line425"><span class="source js"><span class="comment block documentation js"><span class="punctuation definition comment js"><span>/**</span></span></span></span></div><div class="line"><a name="line426"><a name="Date-method-getUTCFullYear"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@method</span></span><span>&nbsp;getUTCFullYear</span></span></span></div><div class="line"><a name="line427"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;Returns&nbsp;the&nbsp;year&nbsp;in&nbsp;the&nbsp;specified&nbsp;date&nbsp;according&nbsp;to&nbsp;universal&nbsp;time.</span></span></span></div><div class="line"><a name="line428"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line429"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;The&nbsp;following&nbsp;example&nbsp;assigns&nbsp;the&nbsp;four-digit&nbsp;value&nbsp;of&nbsp;the&nbsp;current&nbsp;year&nbsp;to&nbsp;the&nbsp;variable&nbsp;`yr`.</span></span></span></div><div class="line"><a name="line430"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line431"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;yr;</span></span></span></div><div class="line"><a name="line432"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Today&nbsp;=&nbsp;new&nbsp;Date();</span></span></span></div><div class="line"><a name="line433"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;yr&nbsp;=&nbsp;Today.getUTCFullYear();</span></span></span></div><div class="line"><a name="line434"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line435"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@return</span></span><span>&nbsp;</span><span class="other meta jsdoc"><span class="entity name type instance jsdoc"><span>{Number}</span></span><span>&nbsp;</span><span class="variable other jsdoc"><span>Four</span></span><span>&nbsp;</span><span class="other description jsdoc"><span>digit&nbsp;representation&nbsp;of&nbsp;the&nbsp;year.</span></span></span></span></span></div><div class="line"><a name="line436"><span class="source js"><span class="comment block documentation js"><span>&nbsp;</span><span class="punctuation definition comment js"><span>*/</span></span></span></span></div><div class="line"><a name="line437"><span class="source js"><span>&nbsp;</span></span></div><div class="line"><a name="line438"><span class="source js"><span class="comment block documentation js"><span class="punctuation definition comment js"><span>/**</span></span></span></span></div><div class="line"><a name="line439"><a name="Date-method-getUTCHours"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@method</span></span><span>&nbsp;getUTCHours</span></span></span></div><div class="line"><a name="line440"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;Returns&nbsp;the&nbsp;hours&nbsp;in&nbsp;the&nbsp;specified&nbsp;date&nbsp;according&nbsp;to&nbsp;universal&nbsp;time.</span></span></span></div><div class="line"><a name="line441"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line442"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;The&nbsp;following&nbsp;example&nbsp;assigns&nbsp;the&nbsp;hours&nbsp;portion&nbsp;of&nbsp;the&nbsp;current&nbsp;time&nbsp;to&nbsp;the&nbsp;variable&nbsp;`hrs`.</span></span></span></div><div class="line"><a name="line443"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line444"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;hrs;</span></span></span></div><div class="line"><a name="line445"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Today&nbsp;=&nbsp;new&nbsp;Date();</span></span></span></div><div class="line"><a name="line446"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;hrs&nbsp;=&nbsp;Today.getUTCHours();</span></span></span></div><div class="line"><a name="line447"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line448"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@return</span></span><span>&nbsp;</span><span class="other meta jsdoc"><span class="entity name type instance jsdoc"><span>{Number}</span></span><span>&nbsp;</span><span class="variable other jsdoc"><span>Value</span></span><span>&nbsp;</span><span class="other description jsdoc"><span>between&nbsp;0&nbsp;and&nbsp;23.</span></span></span></span></span></div><div class="line"><a name="line449"><span class="source js"><span class="comment block documentation js"><span>&nbsp;</span><span class="punctuation definition comment js"><span>*/</span></span></span></span></div><div class="line"><a name="line450"><span class="source js"><span>&nbsp;</span></span></div><div class="line"><a name="line451"><span class="source js"><span class="comment block documentation js"><span class="punctuation definition comment js"><span>/**</span></span></span></span></div><div class="line"><a name="line452"><a name="Date-method-getUTCMilliseconds"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@method</span></span><span>&nbsp;getUTCMilliseconds</span></span></span></div><div class="line"><a name="line453"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;Returns&nbsp;the&nbsp;milliseconds&nbsp;in&nbsp;the&nbsp;specified&nbsp;date&nbsp;according&nbsp;to&nbsp;universal&nbsp;time.</span></span></span></div><div class="line"><a name="line454"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line455"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;The&nbsp;following&nbsp;example&nbsp;assigns&nbsp;the&nbsp;milliseconds&nbsp;portion&nbsp;of&nbsp;the&nbsp;current&nbsp;time&nbsp;to&nbsp;the&nbsp;variable&nbsp;`ms`.</span></span></span></div><div class="line"><a name="line456"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line457"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;ms;</span></span></span></div><div class="line"><a name="line458"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Today&nbsp;=&nbsp;new&nbsp;Date();</span></span></span></div><div class="line"><a name="line459"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ms&nbsp;=&nbsp;Today.getUTCMilliseconds();</span></span></span></div><div class="line"><a name="line460"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line461"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@return</span></span><span>&nbsp;</span><span class="other meta jsdoc"><span class="entity name type instance jsdoc"><span>{Number}</span></span><span>&nbsp;</span><span class="variable other jsdoc"><span>Milliseconds</span></span><span>&nbsp;</span><span class="other description jsdoc"><span>portion&nbsp;of&nbsp;the&nbsp;Date.</span></span></span></span></span></div><div class="line"><a name="line462"><span class="source js"><span class="comment block documentation js"><span>&nbsp;</span><span class="punctuation definition comment js"><span>*/</span></span></span></span></div><div class="line"><a name="line463"><span class="source js"><span>&nbsp;</span></span></div><div class="line"><a name="line464"><span class="source js"><span class="comment block documentation js"><span class="punctuation definition comment js"><span>/**</span></span></span></span></div><div class="line"><a name="line465"><a name="Date-method-getUTCMinutes"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@method</span></span><span>&nbsp;getUTCMinutes</span></span></span></div><div class="line"><a name="line466"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;Returns&nbsp;the&nbsp;minutes&nbsp;in&nbsp;the&nbsp;specified&nbsp;date&nbsp;according&nbsp;to&nbsp;universal&nbsp;time.</span></span></span></div><div class="line"><a name="line467"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line468"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;The&nbsp;following&nbsp;example&nbsp;assigns&nbsp;the&nbsp;minutes&nbsp;portion&nbsp;of&nbsp;the&nbsp;current&nbsp;time&nbsp;to&nbsp;the&nbsp;variable&nbsp;`min`.</span></span></span></div><div class="line"><a name="line469"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line470"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;min;</span></span></span></div><div class="line"><a name="line471"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Today&nbsp;=&nbsp;new&nbsp;Date();</span></span></span></div><div class="line"><a name="line472"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;min&nbsp;=&nbsp;Today.getUTCMinutes();</span></span></span></div><div class="line"><a name="line473"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line474"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@return</span></span><span>&nbsp;</span><span class="other meta jsdoc"><span class="entity name type instance jsdoc"><span>{Number}</span></span><span>&nbsp;</span><span class="variable other jsdoc"><span>Value</span></span><span>&nbsp;</span><span class="other description jsdoc"><span>between&nbsp;0&nbsp;and&nbsp;59.</span></span></span></span></span></div><div class="line"><a name="line475"><span class="source js"><span class="comment block documentation js"><span>&nbsp;</span><span class="punctuation definition comment js"><span>*/</span></span></span></span></div><div class="line"><a name="line476"><span class="source js"><span>&nbsp;</span></span></div><div class="line"><a name="line477"><span class="source js"><span class="comment block documentation js"><span class="punctuation definition comment js"><span>/**</span></span></span></span></div><div class="line"><a name="line478"><a name="Date-method-getUTCMonth"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@method</span></span><span>&nbsp;getUTCMonth</span></span></span></div><div class="line"><a name="line479"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;Returns&nbsp;the&nbsp;month&nbsp;of&nbsp;the&nbsp;specified&nbsp;date&nbsp;according&nbsp;to&nbsp;universal&nbsp;time.</span></span></span></div><div class="line"><a name="line480"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line481"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;The&nbsp;following&nbsp;example&nbsp;assigns&nbsp;the&nbsp;month&nbsp;portion&nbsp;of&nbsp;the&nbsp;current&nbsp;date&nbsp;to&nbsp;the&nbsp;variable&nbsp;`mon`.</span></span></span></div><div class="line"><a name="line482"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line483"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;mon;</span></span></span></div><div class="line"><a name="line484"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Today&nbsp;=&nbsp;new&nbsp;Date();</span></span></span></div><div class="line"><a name="line485"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;mon&nbsp;=&nbsp;Today.getUTCMonth();</span></span></span></div><div class="line"><a name="line486"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line487"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@return</span></span><span>&nbsp;</span><span class="other meta jsdoc"><span class="entity name type instance jsdoc"><span>{Number}</span></span><span>&nbsp;</span><span class="variable other jsdoc"><span>Value</span></span><span>&nbsp;</span><span class="other description jsdoc"><span>between&nbsp;0&nbsp;(January)&nbsp;and&nbsp;11&nbsp;(December).</span></span></span></span></span></div><div class="line"><a name="line488"><span class="source js"><span class="comment block documentation js"><span class="punctuation definition comment js"><span>*/</span></span></span></span></div><div class="line"><a name="line489"><span class="source js"><span>&nbsp;</span></span></div><div class="line"><a name="line490"><span class="source js"><span class="comment block documentation js"><span class="punctuation definition comment js"><span>/**</span></span></span></span></div><div class="line"><a name="line491"><a name="Date-method-getUTCSeconds"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@method</span></span><span>&nbsp;getUTCSeconds</span></span></span></div><div class="line"><a name="line492"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;Returns&nbsp;the&nbsp;seconds&nbsp;in&nbsp;the&nbsp;specified&nbsp;date&nbsp;according&nbsp;to&nbsp;universal&nbsp;time.</span></span></span></div><div class="line"><a name="line493"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line494"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;The&nbsp;following&nbsp;example&nbsp;assigns&nbsp;the&nbsp;seconds&nbsp;portion&nbsp;of&nbsp;the&nbsp;current&nbsp;time&nbsp;to&nbsp;the&nbsp;variable&nbsp;`sec`.</span></span></span></div><div class="line"><a name="line495"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line496"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;sec;</span></span></span></div><div class="line"><a name="line497"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Today&nbsp;=&nbsp;new&nbsp;Date();</span></span></span></div><div class="line"><a name="line498"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sec&nbsp;=&nbsp;Today.getUTCSeconds();</span></span></span></div><div class="line"><a name="line499"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line500"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@return</span></span><span>&nbsp;</span><span class="other meta jsdoc"><span class="entity name type instance jsdoc"><span>{Number}</span></span><span>&nbsp;</span><span class="variable other jsdoc"><span>Value</span></span><span>&nbsp;</span><span class="other description jsdoc"><span>between&nbsp;0&nbsp;and&nbsp;59.</span></span></span></span></span></div><div class="line"><a name="line501"><span class="source js"><span class="comment block documentation js"><span class="punctuation definition comment js"><span>*/</span></span></span></span></div><div class="line"><a name="line502"><span class="source js"><span>&nbsp;</span></span></div><div class="line"><a name="line503"><span class="source js"><span class="comment block documentation js"><span class="punctuation definition comment js"><span>/**</span></span></span></span></div><div class="line"><a name="line504"><a name="Date-method-setDate"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@method</span></span><span>&nbsp;setDate</span></span></span></div><div class="line"><a name="line505"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;Sets&nbsp;the&nbsp;day&nbsp;of&nbsp;the&nbsp;month&nbsp;(1-31)&nbsp;for&nbsp;a&nbsp;specified&nbsp;date&nbsp;according&nbsp;to&nbsp;local&nbsp;time.</span></span></span></div><div class="line"><a name="line506"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line507"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;If&nbsp;the&nbsp;parameter&nbsp;you&nbsp;specify&nbsp;is&nbsp;outside&nbsp;of&nbsp;the&nbsp;expected&nbsp;range,&nbsp;`setDate`&nbsp;attempts&nbsp;to&nbsp;update&nbsp;the</span></span></span></div><div class="line"><a name="line508"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;date&nbsp;information&nbsp;in&nbsp;the&nbsp;`Date`&nbsp;object&nbsp;accordingly.&nbsp;For&nbsp;example,&nbsp;if&nbsp;you&nbsp;use&nbsp;0&nbsp;for&nbsp;`dayValue`,&nbsp;the</span></span></span></div><div class="line"><a name="line509"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;date&nbsp;will&nbsp;be&nbsp;set&nbsp;to&nbsp;the&nbsp;last&nbsp;day&nbsp;of&nbsp;the&nbsp;previous&nbsp;month.</span></span></span></div><div class="line"><a name="line510"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line511"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;The&nbsp;second&nbsp;statement&nbsp;below&nbsp;changes&nbsp;the&nbsp;day&nbsp;for&nbsp;theBigDay&nbsp;to&nbsp;July&nbsp;24&nbsp;from&nbsp;its&nbsp;original&nbsp;value.</span></span></span></div><div class="line"><a name="line512"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line513"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;theBigDay&nbsp;=&nbsp;new&nbsp;Date(&quot;July&nbsp;27,&nbsp;1962&nbsp;23:30:00&quot;)</span></span></span></div><div class="line"><a name="line514"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;theBigDay.setDate(24)</span></span></span></div><div class="line"><a name="line515"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line516"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@param</span></span><span>&nbsp;</span><span class="other meta jsdoc"><span class="entity name type instance jsdoc"><span>{Number}</span></span><span>&nbsp;</span><span class="variable other jsdoc"><span>dayValue</span></span><span>&nbsp;</span><span class="other description jsdoc"><span>An&nbsp;integer&nbsp;from&nbsp;1&nbsp;to&nbsp;31,&nbsp;representing&nbsp;the&nbsp;day&nbsp;of&nbsp;the&nbsp;month.</span></span></span></span></span></div><div class="line"><a name="line517"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@return</span></span><span>&nbsp;</span><span class="other meta jsdoc"><span class="entity name type instance jsdoc"><span>{Number}</span></span><span>&nbsp;</span><span class="variable other jsdoc"><span>New</span></span><span>&nbsp;</span><span class="other description jsdoc"><span>date&nbsp;represented&nbsp;as&nbsp;milliseconds.</span></span></span></span></span></div><div class="line"><a name="line518"><span class="source js"><span class="comment block documentation js"><span class="punctuation definition comment js"><span>*/</span></span></span></span></div><div class="line"><a name="line519"><span class="source js"><span>&nbsp;</span></span></div><div class="line"><a name="line520"><span class="source js"><span class="comment block documentation js"><span class="punctuation definition comment js"><span>/**</span></span></span></span></div><div class="line"><a name="line521"><a name="Date-method-setFullYear"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@method</span></span><span>&nbsp;setFullYear</span></span></span></div><div class="line"><a name="line522"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;Sets&nbsp;the&nbsp;full&nbsp;year&nbsp;(4&nbsp;digits&nbsp;for&nbsp;4-digit&nbsp;years)&nbsp;for&nbsp;a&nbsp;specified&nbsp;date&nbsp;according&nbsp;to</span></span></span></div><div class="line"><a name="line523"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;local&nbsp;time.</span></span></span></div><div class="line"><a name="line524"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line525"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;If&nbsp;you&nbsp;do&nbsp;not&nbsp;specify&nbsp;the&nbsp;`monthValue`&nbsp;and&nbsp;`dayValue`&nbsp;parameters,&nbsp;the&nbsp;values&nbsp;returned&nbsp;from&nbsp;the</span></span></span></div><div class="line"><a name="line526"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;`getMonth`&nbsp;and&nbsp;`getDate`&nbsp;methods&nbsp;are&nbsp;used.</span></span></span></div><div class="line"><a name="line527"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line528"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;If&nbsp;a&nbsp;parameter&nbsp;you&nbsp;specify&nbsp;is&nbsp;outside&nbsp;of&nbsp;the&nbsp;expected&nbsp;range,&nbsp;`setFullYear`&nbsp;attempts&nbsp;to&nbsp;update&nbsp;the</span></span></span></div><div class="line"><a name="line529"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;other&nbsp;parameters&nbsp;and&nbsp;the&nbsp;date&nbsp;information&nbsp;in&nbsp;the&nbsp;`Date`&nbsp;object&nbsp;accordingly.&nbsp;For&nbsp;example,&nbsp;if&nbsp;you</span></span></span></div><div class="line"><a name="line530"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;specify&nbsp;15&nbsp;for&nbsp;monthValue,&nbsp;the&nbsp;year&nbsp;is&nbsp;incremented&nbsp;by&nbsp;1&nbsp;(year&nbsp;+&nbsp;1),&nbsp;and&nbsp;3&nbsp;is&nbsp;used&nbsp;for&nbsp;the&nbsp;month.</span></span></span></div><div class="line"><a name="line531"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line532"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;theBigDay&nbsp;=&nbsp;new&nbsp;Date();</span></span></span></div><div class="line"><a name="line533"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;theBigDay.setFullYear(1997);</span></span></span></div><div class="line"><a name="line534"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line535"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@param</span></span><span>&nbsp;</span><span class="other meta jsdoc"><span class="entity name type instance jsdoc"><span>{Number}</span></span><span>&nbsp;</span><span class="variable other jsdoc"><span>yearValue</span></span><span>&nbsp;</span><span class="other description jsdoc"><span>An&nbsp;integer&nbsp;specifying&nbsp;the&nbsp;numeric&nbsp;value&nbsp;of&nbsp;the&nbsp;year,&nbsp;for&nbsp;example,&nbsp;1995.</span></span></span></span></span></div><div class="line"><a name="line536"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@param</span></span><span>&nbsp;</span><span class="other meta jsdoc"><span class="entity name type instance jsdoc"><span>{Number}</span></span><span>&nbsp;</span><span class="variable other jsdoc"><span>monthValue</span></span><span>&nbsp;</span><span class="other description jsdoc"><span>An&nbsp;integer&nbsp;between&nbsp;0&nbsp;and&nbsp;11&nbsp;representing&nbsp;the&nbsp;months&nbsp;January&nbsp;through</span></span></span></span></span></div><div class="line"><a name="line537"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;December.</span></span></span></div><div class="line"><a name="line538"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@param</span></span><span>&nbsp;</span><span class="other meta jsdoc"><span class="entity name type instance jsdoc"><span>{Number}</span></span><span>&nbsp;</span><span class="variable other jsdoc"><span>dayValue</span></span><span>&nbsp;</span><span class="other description jsdoc"><span>An&nbsp;integer&nbsp;between&nbsp;1&nbsp;and&nbsp;31&nbsp;representing&nbsp;the&nbsp;day&nbsp;of&nbsp;the&nbsp;month.&nbsp;If&nbsp;you</span></span></span></span></span></div><div class="line"><a name="line539"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;specify&nbsp;the&nbsp;`dayValue`&nbsp;parameter,&nbsp;you&nbsp;must&nbsp;also&nbsp;specify&nbsp;the&nbsp;`monthValue`.</span></span></span></div><div class="line"><a name="line540"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@return</span></span><span>&nbsp;</span><span class="other meta jsdoc"><span class="entity name type instance jsdoc"><span>{Number}</span></span><span>&nbsp;</span><span class="variable other jsdoc"><span>New</span></span><span>&nbsp;</span><span class="other description jsdoc"><span>date&nbsp;represented&nbsp;as&nbsp;milliseconds.</span></span></span></span></span></div><div class="line"><a name="line541"><span class="source js"><span class="comment block documentation js"><span>&nbsp;</span><span class="punctuation definition comment js"><span>*/</span></span></span></span></div><div class="line"><a name="line542"><span class="source js"><span>&nbsp;</span></span></div><div class="line"><a name="line543"><span class="source js"><span class="comment block documentation js"><span class="punctuation definition comment js"><span>/**</span></span></span></span></div><div class="line"><a name="line544"><a name="Date-method-setHours"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@method</span></span><span>&nbsp;setHours</span></span></span></div><div class="line"><a name="line545"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;Sets&nbsp;the&nbsp;hours&nbsp;(0-23)&nbsp;for&nbsp;a&nbsp;specified&nbsp;date&nbsp;according&nbsp;to&nbsp;local&nbsp;time.</span></span></span></div><div class="line"><a name="line546"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line547"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;If&nbsp;you&nbsp;do&nbsp;not&nbsp;specify&nbsp;the&nbsp;`minutesValue`,&nbsp;`secondsValue`,&nbsp;and&nbsp;`msValue`&nbsp;parameters,&nbsp;the&nbsp;values</span></span></span></div><div class="line"><a name="line548"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;returned&nbsp;from&nbsp;the&nbsp;`getUTCMinutes`,&nbsp;`getUTCSeconds`,&nbsp;and&nbsp;`getMilliseconds`&nbsp;methods&nbsp;are&nbsp;used.</span></span></span></div><div class="line"><a name="line549"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line550"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;If&nbsp;a&nbsp;parameter&nbsp;you&nbsp;specify&nbsp;is&nbsp;outside&nbsp;of&nbsp;the&nbsp;expected&nbsp;range,&nbsp;setHours&nbsp;attempts&nbsp;to&nbsp;update&nbsp;the&nbsp;date</span></span></span></div><div class="line"><a name="line551"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;information&nbsp;in&nbsp;the&nbsp;`Date`&nbsp;object&nbsp;accordingly.&nbsp;For&nbsp;example,&nbsp;if&nbsp;you&nbsp;use&nbsp;100&nbsp;for&nbsp;`secondsValue`,&nbsp;the</span></span></span></div><div class="line"><a name="line552"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;minutes&nbsp;will&nbsp;be&nbsp;incremented&nbsp;by&nbsp;1&nbsp;(min&nbsp;+&nbsp;1),&nbsp;and&nbsp;40&nbsp;will&nbsp;be&nbsp;used&nbsp;for&nbsp;seconds.</span></span></span></div><div class="line"><a name="line553"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line554"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;theBigDay.setHours(7)</span></span></span></div><div class="line"><a name="line555"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line556"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@param</span></span><span>&nbsp;</span><span class="other meta jsdoc"><span class="entity name type instance jsdoc"><span>{Number}</span></span><span>&nbsp;</span><span class="variable other jsdoc"><span>hoursValue</span></span><span>&nbsp;</span><span class="other description jsdoc"><span>An&nbsp;integer&nbsp;between&nbsp;0&nbsp;and&nbsp;23,&nbsp;representing&nbsp;the&nbsp;hour.</span></span></span></span></span></div><div class="line"><a name="line557"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@param</span></span><span>&nbsp;</span><span class="other meta jsdoc"><span class="entity name type instance jsdoc"><span>{Number}</span></span><span>&nbsp;</span><span class="variable other jsdoc"><span>minutesValue</span></span><span>&nbsp;</span><span class="other description jsdoc"><span>An&nbsp;integer&nbsp;between&nbsp;0&nbsp;and&nbsp;59,&nbsp;representing&nbsp;the&nbsp;minutes.</span></span></span></span></span></div><div class="line"><a name="line558"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@param</span></span><span>&nbsp;</span><span class="other meta jsdoc"><span class="entity name type instance jsdoc"><span>{Number}</span></span><span>&nbsp;</span><span class="variable other jsdoc"><span>secondsValue</span></span><span>&nbsp;</span><span class="other description jsdoc"><span>An&nbsp;integer&nbsp;between&nbsp;0&nbsp;and&nbsp;59,&nbsp;representing&nbsp;the&nbsp;seconds.&nbsp;If&nbsp;you&nbsp;specify&nbsp;the</span></span></span></span></span></div><div class="line"><a name="line559"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;`secondsValue`&nbsp;parameter,&nbsp;you&nbsp;must&nbsp;also&nbsp;specify&nbsp;the&nbsp;`minutesValue`.</span></span></span></div><div class="line"><a name="line560"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@param</span></span><span>&nbsp;</span><span class="other meta jsdoc"><span class="entity name type instance jsdoc"><span>{Number}</span></span><span>&nbsp;</span><span class="variable other jsdoc"><span>msValue</span></span><span>&nbsp;</span><span class="other description jsdoc"><span>A&nbsp;number&nbsp;between&nbsp;0&nbsp;and&nbsp;999,&nbsp;representing&nbsp;the&nbsp;milliseconds.&nbsp;If&nbsp;you&nbsp;specify&nbsp;the</span></span></span></span></span></div><div class="line"><a name="line561"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;`msValue`&nbsp;parameter,&nbsp;you&nbsp;must&nbsp;also&nbsp;specify&nbsp;the&nbsp;`minutesValue`&nbsp;and&nbsp;`secondsValue`.</span></span></span></div><div class="line"><a name="line562"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@return</span></span><span>&nbsp;</span><span class="other meta jsdoc"><span class="entity name type instance jsdoc"><span>{Number}</span></span><span>&nbsp;</span><span class="variable other jsdoc"><span>New</span></span><span>&nbsp;</span><span class="other description jsdoc"><span>date&nbsp;represented&nbsp;as&nbsp;milliseconds.</span></span></span></span></span></div><div class="line"><a name="line563"><span class="source js"><span class="comment block documentation js"><span>&nbsp;</span><span class="punctuation definition comment js"><span>*/</span></span></span></span></div><div class="line"><a name="line564"><span class="source js"><span>&nbsp;</span></span></div><div class="line"><a name="line565"><span class="source js"><span class="comment block documentation js"><span class="punctuation definition comment js"><span>/**</span></span></span></span></div><div class="line"><a name="line566"><a name="Date-method-setMilliseconds"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@method</span></span><span>&nbsp;setMilliseconds</span></span></span></div><div class="line"><a name="line567"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;Sets&nbsp;the&nbsp;milliseconds&nbsp;(0-999)&nbsp;for&nbsp;a&nbsp;specified&nbsp;date&nbsp;according&nbsp;to&nbsp;local&nbsp;time.</span></span></span></div><div class="line"><a name="line568"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line569"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;If&nbsp;you&nbsp;specify&nbsp;a&nbsp;number&nbsp;outside&nbsp;the&nbsp;expected&nbsp;range,&nbsp;the&nbsp;date&nbsp;information&nbsp;in&nbsp;the&nbsp;`Date`&nbsp;object&nbsp;is</span></span></span></div><div class="line"><a name="line570"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;updated&nbsp;accordingly.&nbsp;For&nbsp;example,&nbsp;if&nbsp;you&nbsp;specify&nbsp;1005,&nbsp;the&nbsp;number&nbsp;of&nbsp;seconds&nbsp;is&nbsp;incremented&nbsp;by&nbsp;1,</span></span></span></div><div class="line"><a name="line571"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;and&nbsp;5&nbsp;is&nbsp;used&nbsp;for&nbsp;the&nbsp;milliseconds.</span></span></span></div><div class="line"><a name="line572"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line573"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;theBigDay&nbsp;=&nbsp;new&nbsp;Date();</span></span></span></div><div class="line"><a name="line574"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;theBigDay.setMilliseconds(100);</span></span></span></div><div class="line"><a name="line575"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line576"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@param</span></span><span>&nbsp;</span><span class="other meta jsdoc"><span class="entity name type instance jsdoc"><span>{Number}</span></span><span>&nbsp;</span><span class="variable other jsdoc"><span>millisecondsValue</span></span><span>&nbsp;</span><span class="other description jsdoc"><span>A&nbsp;number&nbsp;between&nbsp;0&nbsp;and&nbsp;999,&nbsp;representing&nbsp;the&nbsp;milliseconds.</span></span></span></span></span></div><div class="line"><a name="line577"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@return</span></span><span>&nbsp;</span><span class="other meta jsdoc"><span class="entity name type instance jsdoc"><span>{Number}</span></span><span>&nbsp;</span><span class="variable other jsdoc"><span>New</span></span><span>&nbsp;</span><span class="other description jsdoc"><span>date&nbsp;represented&nbsp;as&nbsp;milliseconds.</span></span></span></span></span></div><div class="line"><a name="line578"><span class="source js"><span class="comment block documentation js"><span>&nbsp;</span><span class="punctuation definition comment js"><span>*/</span></span></span></span></div><div class="line"><a name="line579"><span class="source js"><span>&nbsp;</span></span></div><div class="line"><a name="line580"><span class="source js"><span class="comment block documentation js"><span class="punctuation definition comment js"><span>/**</span></span></span></span></div><div class="line"><a name="line581"><a name="Date-method-setMinutes"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@method</span></span><span>&nbsp;setMinutes</span></span></span></div><div class="line"><a name="line582"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;Sets&nbsp;the&nbsp;minutes&nbsp;(0-59)&nbsp;for&nbsp;a&nbsp;specified&nbsp;date&nbsp;according&nbsp;to&nbsp;local&nbsp;time.</span></span></span></div><div class="line"><a name="line583"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line584"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;If&nbsp;you&nbsp;do&nbsp;not&nbsp;specify&nbsp;the&nbsp;`secondsValue`&nbsp;and&nbsp;`msValue`&nbsp;parameters,&nbsp;the&nbsp;values&nbsp;returned&nbsp;from</span></span></span></div><div class="line"><a name="line585"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;`getSeconds`&nbsp;and&nbsp;`getMilliseconds`&nbsp;methods&nbsp;are&nbsp;used.</span></span></span></div><div class="line"><a name="line586"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line587"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;If&nbsp;a&nbsp;parameter&nbsp;you&nbsp;specify&nbsp;is&nbsp;outside&nbsp;of&nbsp;the&nbsp;expected&nbsp;range,&nbsp;`setMinutes`&nbsp;attempts&nbsp;to&nbsp;update&nbsp;the</span></span></span></div><div class="line"><a name="line588"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;date&nbsp;information&nbsp;in&nbsp;the&nbsp;`Date`&nbsp;object&nbsp;accordingly.&nbsp;For&nbsp;example,&nbsp;if&nbsp;you&nbsp;use&nbsp;100&nbsp;for&nbsp;`secondsValue`,</span></span></span></div><div class="line"><a name="line589"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;the&nbsp;minutes&nbsp;(`minutesValue`)&nbsp;will&nbsp;be&nbsp;incremented&nbsp;by&nbsp;1&nbsp;(minutesValue&nbsp;+&nbsp;1),&nbsp;and&nbsp;40&nbsp;will&nbsp;be&nbsp;used&nbsp;for</span></span></span></div><div class="line"><a name="line590"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;seconds.</span></span></span></div><div class="line"><a name="line591"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line592"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;theBigDay.setMinutes(45)</span></span></span></div><div class="line"><a name="line593"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line594"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@param</span></span><span>&nbsp;</span><span class="other meta jsdoc"><span class="entity name type instance jsdoc"><span>{Number}</span></span><span>&nbsp;</span><span class="variable other jsdoc"><span>minutesValue</span></span><span>&nbsp;</span><span class="other description jsdoc"><span>An&nbsp;integer&nbsp;between&nbsp;0&nbsp;and&nbsp;59,&nbsp;representing&nbsp;the&nbsp;minutes.</span></span></span></span></span></div><div class="line"><a name="line595"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@param</span></span><span>&nbsp;</span><span class="other meta jsdoc"><span class="entity name type instance jsdoc"><span>{Number}</span></span><span>&nbsp;</span><span class="variable other jsdoc"><span>secondsValue</span></span><span>&nbsp;</span><span class="other description jsdoc"><span>An&nbsp;integer&nbsp;between&nbsp;0&nbsp;and&nbsp;59,&nbsp;representing&nbsp;the&nbsp;seconds.&nbsp;If&nbsp;you</span></span></span></span></span></div><div class="line"><a name="line596"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;specify&nbsp;the&nbsp;secondsValue&nbsp;parameter,&nbsp;you&nbsp;must&nbsp;also&nbsp;specify&nbsp;the&nbsp;`minutesValue`.</span></span></span></div><div class="line"><a name="line597"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@param</span></span><span>&nbsp;</span><span class="other meta jsdoc"><span class="entity name type instance jsdoc"><span>{Number}</span></span><span>&nbsp;</span><span class="variable other jsdoc"><span>msValue</span></span><span>&nbsp;</span><span class="other description jsdoc"><span>A&nbsp;number&nbsp;between&nbsp;0&nbsp;and&nbsp;999,&nbsp;representing&nbsp;the&nbsp;milliseconds.&nbsp;If&nbsp;you&nbsp;specify</span></span></span></span></span></div><div class="line"><a name="line598"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;the&nbsp;`msValue`&nbsp;parameter,&nbsp;you&nbsp;must&nbsp;also&nbsp;specify&nbsp;the&nbsp;`minutesValue`&nbsp;and&nbsp;`secondsValue`.</span></span></span></div><div class="line"><a name="line599"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@return</span></span><span>&nbsp;</span><span class="other meta jsdoc"><span class="entity name type instance jsdoc"><span>{Number}</span></span><span>&nbsp;</span><span class="variable other jsdoc"><span>New</span></span><span>&nbsp;</span><span class="other description jsdoc"><span>date&nbsp;represented&nbsp;as&nbsp;milliseconds.</span></span></span></span></span></div><div class="line"><a name="line600"><span class="source js"><span class="comment block documentation js"><span>&nbsp;</span><span class="punctuation definition comment js"><span>*/</span></span></span></span></div><div class="line"><a name="line601"><span class="source js"><span>&nbsp;</span></span></div><div class="line"><a name="line602"><span class="source js"><span class="comment block documentation js"><span class="punctuation definition comment js"><span>/**</span></span></span></span></div><div class="line"><a name="line603"><a name="Date-method-setMonth"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@method</span></span><span>&nbsp;setMonth</span></span></span></div><div class="line"><a name="line604"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;Sets&nbsp;the&nbsp;month&nbsp;(0-11)&nbsp;for&nbsp;a&nbsp;specified&nbsp;date&nbsp;according&nbsp;to&nbsp;local&nbsp;time.</span></span></span></div><div class="line"><a name="line605"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line606"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;If&nbsp;you&nbsp;do&nbsp;not&nbsp;specify&nbsp;the&nbsp;`dayValue`&nbsp;parameter,&nbsp;the&nbsp;value&nbsp;returned&nbsp;from&nbsp;the&nbsp;`getDate`&nbsp;method&nbsp;is</span></span></span></div><div class="line"><a name="line607"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;used.</span></span></span></div><div class="line"><a name="line608"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line609"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;If&nbsp;a&nbsp;parameter&nbsp;you&nbsp;specify&nbsp;is&nbsp;outside&nbsp;of&nbsp;the&nbsp;expected&nbsp;range,&nbsp;`setMonth`&nbsp;attempts&nbsp;to&nbsp;update&nbsp;the&nbsp;date</span></span></span></div><div class="line"><a name="line610"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;information&nbsp;in&nbsp;the&nbsp;`Date`&nbsp;object&nbsp;accordingly.&nbsp;For&nbsp;example,&nbsp;if&nbsp;you&nbsp;use&nbsp;15&nbsp;for&nbsp;`monthValue`,&nbsp;the&nbsp;year</span></span></span></div><div class="line"><a name="line611"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;will&nbsp;be&nbsp;incremented&nbsp;by&nbsp;1&nbsp;(year&nbsp;+&nbsp;1),&nbsp;and&nbsp;3&nbsp;will&nbsp;be&nbsp;used&nbsp;for&nbsp;month.</span></span></span></div><div class="line"><a name="line612"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line613"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;theBigDay.setMonth(6)</span></span></span></div><div class="line"><a name="line614"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line615"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@param</span></span><span>&nbsp;</span><span class="other meta jsdoc"><span class="entity name type instance jsdoc"><span>{Number}</span></span><span>&nbsp;</span><span class="variable other jsdoc"><span>monthValue</span></span><span>&nbsp;</span><span class="other description jsdoc"><span>An&nbsp;integer&nbsp;between&nbsp;0&nbsp;and&nbsp;11&nbsp;(representing&nbsp;the&nbsp;months&nbsp;January&nbsp;through</span></span></span></span></span></div><div class="line"><a name="line616"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;December).</span></span></span></div><div class="line"><a name="line617"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@param</span></span><span>&nbsp;</span><span class="other meta jsdoc"><span class="entity name type instance jsdoc"><span>{Number}</span></span><span>&nbsp;</span><span class="variable other jsdoc"><span>dayValue</span></span><span>&nbsp;</span><span class="other description jsdoc"><span>An&nbsp;integer&nbsp;from&nbsp;1&nbsp;to&nbsp;31,&nbsp;representing&nbsp;the&nbsp;day&nbsp;of&nbsp;the&nbsp;month.</span></span></span></span></span></div><div class="line"><a name="line618"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@return</span></span><span>&nbsp;</span><span class="other meta jsdoc"><span class="entity name type instance jsdoc"><span>{Number}</span></span><span>&nbsp;</span><span class="variable other jsdoc"><span>New</span></span><span>&nbsp;</span><span class="other description jsdoc"><span>date&nbsp;represented&nbsp;as&nbsp;milliseconds.</span></span></span></span></span></div><div class="line"><a name="line619"><span class="source js"><span class="comment block documentation js"><span>&nbsp;</span><span class="punctuation definition comment js"><span>*/</span></span></span></span></div><div class="line"><a name="line620"><span class="source js"><span>&nbsp;</span></span></div><div class="line"><a name="line621"><span class="source js"><span class="comment block documentation js"><span class="punctuation definition comment js"><span>/**</span></span></span></span></div><div class="line"><a name="line622"><a name="Date-method-setSeconds"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@method</span></span><span>&nbsp;setSeconds</span></span></span></div><div class="line"><a name="line623"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;Sets&nbsp;the&nbsp;seconds&nbsp;(0-59)&nbsp;for&nbsp;a&nbsp;specified&nbsp;date&nbsp;according&nbsp;to&nbsp;local&nbsp;time.</span></span></span></div><div class="line"><a name="line624"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line625"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;If&nbsp;you&nbsp;do&nbsp;not&nbsp;specify&nbsp;the&nbsp;`msValue`&nbsp;parameter,&nbsp;the&nbsp;value&nbsp;returned&nbsp;from&nbsp;the&nbsp;`getMilliseconds`&nbsp;method</span></span></span></div><div class="line"><a name="line626"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;is&nbsp;used.</span></span></span></div><div class="line"><a name="line627"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line628"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;If&nbsp;a&nbsp;parameter&nbsp;you&nbsp;specify&nbsp;is&nbsp;outside&nbsp;of&nbsp;the&nbsp;expected&nbsp;range,&nbsp;`setSeconds`&nbsp;attempts&nbsp;to&nbsp;update&nbsp;the</span></span></span></div><div class="line"><a name="line629"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;date&nbsp;information&nbsp;in&nbsp;the&nbsp;`Date`&nbsp;object&nbsp;accordingly.&nbsp;For&nbsp;example,&nbsp;if&nbsp;you&nbsp;use&nbsp;100&nbsp;for&nbsp;`secondsValue`,</span></span></span></div><div class="line"><a name="line630"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;the&nbsp;minutes&nbsp;stored&nbsp;in&nbsp;the&nbsp;`Date`&nbsp;object&nbsp;will&nbsp;be&nbsp;incremented&nbsp;by&nbsp;1,&nbsp;and&nbsp;40&nbsp;will&nbsp;be&nbsp;used&nbsp;for&nbsp;seconds.</span></span></span></div><div class="line"><a name="line631"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line632"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;theBigDay.setSeconds(30)</span></span></span></div><div class="line"><a name="line633"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line634"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@param</span></span><span>&nbsp;</span><span class="other meta jsdoc"><span class="entity name type instance jsdoc"><span>{Number}</span></span><span>&nbsp;</span><span class="variable other jsdoc"><span>secondsValue</span></span><span>&nbsp;</span><span class="other description jsdoc"><span>An&nbsp;integer&nbsp;between&nbsp;0&nbsp;and&nbsp;59.</span></span></span></span></span></div><div class="line"><a name="line635"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@param</span></span><span>&nbsp;</span><span class="other meta jsdoc"><span class="entity name type instance jsdoc"><span>{Number}</span></span><span>&nbsp;</span><span class="variable other jsdoc"><span>msValue</span></span><span>&nbsp;</span><span class="other description jsdoc"><span>A&nbsp;number&nbsp;between&nbsp;0&nbsp;and&nbsp;999,&nbsp;representing&nbsp;the&nbsp;milliseconds.&nbsp;If&nbsp;you&nbsp;specify</span></span></span></span></span></div><div class="line"><a name="line636"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;the`msValue`&nbsp;parameter,&nbsp;you&nbsp;must&nbsp;also&nbsp;specify&nbsp;the&nbsp;`minutesValue`&nbsp;and&nbsp;`secondsValue`.</span></span></span></div><div class="line"><a name="line637"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@return</span></span><span>&nbsp;</span><span class="other meta jsdoc"><span class="entity name type instance jsdoc"><span>{Number}</span></span><span>&nbsp;</span><span class="variable other jsdoc"><span>New</span></span><span>&nbsp;</span><span class="other description jsdoc"><span>date&nbsp;represented&nbsp;as&nbsp;milliseconds.</span></span></span></span></span></div><div class="line"><a name="line638"><span class="source js"><span class="comment block documentation js"><span>&nbsp;</span><span class="punctuation definition comment js"><span>*/</span></span></span></span></div><div class="line"><a name="line639"><span class="source js"><span>&nbsp;</span></span></div><div class="line"><a name="line640"><span class="source js"><span class="comment block documentation js"><span class="punctuation definition comment js"><span>/**</span></span></span></span></div><div class="line"><a name="line641"><a name="Date-method-setTime"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@method</span></span><span>&nbsp;setTime</span></span></span></div><div class="line"><a name="line642"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;Sets&nbsp;the&nbsp;Date&nbsp;object&nbsp;to&nbsp;the&nbsp;time&nbsp;represented&nbsp;by&nbsp;a&nbsp;number&nbsp;of&nbsp;milliseconds&nbsp;since</span></span></span></div><div class="line"><a name="line643"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;January&nbsp;1,&nbsp;1970,&nbsp;00:00:00&nbsp;UTC,&nbsp;allowing&nbsp;for&nbsp;negative&nbsp;numbers&nbsp;for&nbsp;times&nbsp;prior.</span></span></span></div><div class="line"><a name="line644"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line645"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;Use&nbsp;the&nbsp;`setTime`&nbsp;method&nbsp;to&nbsp;help&nbsp;assign&nbsp;a&nbsp;date&nbsp;and&nbsp;time&nbsp;to&nbsp;another&nbsp;`Date`&nbsp;object.</span></span></span></div><div class="line"><a name="line646"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line647"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;theBigDay&nbsp;=&nbsp;new&nbsp;Date(&quot;July&nbsp;1,&nbsp;1999&quot;)</span></span></span></div><div class="line"><a name="line648"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sameAsBigDay&nbsp;=&nbsp;new&nbsp;Date()</span></span></span></div><div class="line"><a name="line649"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sameAsBigDay.setTime(theBigDay.getTime())</span></span></span></div><div class="line"><a name="line650"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line651"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@param</span></span><span>&nbsp;</span><span class="other meta jsdoc"><span class="entity name type instance jsdoc"><span>{Number}</span></span><span>&nbsp;</span><span class="variable other jsdoc"><span>timeValue</span></span><span>&nbsp;</span><span class="other description jsdoc"><span>An&nbsp;integer&nbsp;representing&nbsp;the&nbsp;number&nbsp;of&nbsp;milliseconds&nbsp;since&nbsp;1&nbsp;January</span></span></span></span></span></div><div class="line"><a name="line652"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;1970,&nbsp;00:00:00&nbsp;UTC.</span></span></span></div><div class="line"><a name="line653"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@return</span></span><span>&nbsp;</span><span class="other meta jsdoc"><span class="entity name type instance jsdoc"><span>{Number}</span></span><span>&nbsp;</span><span class="variable other jsdoc"><span>New</span></span><span>&nbsp;</span><span class="other description jsdoc"><span>date&nbsp;represented&nbsp;as&nbsp;milliseconds.</span></span></span></span></span></div><div class="line"><a name="line654"><span class="source js"><span class="comment block documentation js"><span>&nbsp;</span><span class="punctuation definition comment js"><span>*/</span></span></span></span></div><div class="line"><a name="line655"><span class="source js"><span>&nbsp;</span></span></div><div class="line"><a name="line656"><span class="source js"><span class="comment block documentation js"><span class="punctuation definition comment js"><span>/**</span></span></span></span></div><div class="line"><a name="line657"><a name="Date-method-setUTCDate"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@method</span></span><span>&nbsp;setUTCDate</span></span></span></div><div class="line"><a name="line658"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;Sets&nbsp;the&nbsp;day&nbsp;of&nbsp;the&nbsp;month&nbsp;(1-31)&nbsp;for&nbsp;a&nbsp;specified&nbsp;date&nbsp;according&nbsp;to&nbsp;universal&nbsp;time.</span></span></span></div><div class="line"><a name="line659"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line660"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;If&nbsp;a&nbsp;parameter&nbsp;you&nbsp;specify&nbsp;is&nbsp;outside&nbsp;of&nbsp;the&nbsp;expected&nbsp;range,&nbsp;`setUTCDate`&nbsp;attempts&nbsp;to&nbsp;update&nbsp;the</span></span></span></div><div class="line"><a name="line661"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;date&nbsp;information&nbsp;in&nbsp;the&nbsp;`Date`&nbsp;object&nbsp;accordingly.&nbsp;For&nbsp;example,&nbsp;if&nbsp;you&nbsp;use&nbsp;40&nbsp;for&nbsp;`dayValue`,&nbsp;and</span></span></span></div><div class="line"><a name="line662"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;the&nbsp;month&nbsp;stored&nbsp;in&nbsp;the&nbsp;`Date`&nbsp;object&nbsp;is&nbsp;June,&nbsp;the&nbsp;day&nbsp;will&nbsp;be&nbsp;changed&nbsp;to&nbsp;10&nbsp;and&nbsp;the&nbsp;month&nbsp;will&nbsp;be</span></span></span></div><div class="line"><a name="line663"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;incremented&nbsp;to&nbsp;July.</span></span></span></div><div class="line"><a name="line664"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line665"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;theBigDay&nbsp;=&nbsp;new&nbsp;Date();</span></span></span></div><div class="line"><a name="line666"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;theBigDay.setUTCDate(20);</span></span></span></div><div class="line"><a name="line667"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line668"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@param</span></span><span>&nbsp;</span><span class="other meta jsdoc"><span class="entity name type instance jsdoc"><span>{Number}</span></span><span>&nbsp;</span><span class="variable other jsdoc"><span>dayValue</span></span><span>&nbsp;</span><span class="other description jsdoc"><span>An&nbsp;integer&nbsp;from&nbsp;1&nbsp;to&nbsp;31,&nbsp;representing&nbsp;the&nbsp;day&nbsp;of&nbsp;the&nbsp;month.</span></span></span></span></span></div><div class="line"><a name="line669"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@return</span></span><span>&nbsp;</span><span class="other meta jsdoc"><span class="entity name type instance jsdoc"><span>{Number}</span></span><span>&nbsp;</span><span class="variable other jsdoc"><span>New</span></span><span>&nbsp;</span><span class="other description jsdoc"><span>date&nbsp;represented&nbsp;as&nbsp;milliseconds.</span></span></span></span></span></div><div class="line"><a name="line670"><span class="source js"><span class="comment block documentation js"><span>&nbsp;</span><span class="punctuation definition comment js"><span>*/</span></span></span></span></div><div class="line"><a name="line671"><span class="source js"><span>&nbsp;</span></span></div><div class="line"><a name="line672"><span class="source js"><span class="comment block documentation js"><span class="punctuation definition comment js"><span>/**</span></span></span></span></div><div class="line"><a name="line673"><a name="Date-method-setUTCFullYear"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@method</span></span><span>&nbsp;setUTCFullYear</span></span></span></div><div class="line"><a name="line674"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;Sets&nbsp;the&nbsp;full&nbsp;year&nbsp;(4&nbsp;digits&nbsp;for&nbsp;4-digit&nbsp;years)&nbsp;for&nbsp;a&nbsp;specified&nbsp;date&nbsp;according</span></span></span></div><div class="line"><a name="line675"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;to&nbsp;universal&nbsp;time.</span></span></span></div><div class="line"><a name="line676"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line677"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;If&nbsp;you&nbsp;do&nbsp;not&nbsp;specify&nbsp;the&nbsp;`monthValue`&nbsp;and&nbsp;`dayValue`&nbsp;parameters,&nbsp;the&nbsp;values&nbsp;returned&nbsp;from&nbsp;the</span></span></span></div><div class="line"><a name="line678"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;`getMonth`&nbsp;and&nbsp;`getDate`&nbsp;methods&nbsp;are&nbsp;used.</span></span></span></div><div class="line"><a name="line679"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line680"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;If&nbsp;a&nbsp;parameter&nbsp;you&nbsp;specify&nbsp;is&nbsp;outside&nbsp;of&nbsp;the&nbsp;expected&nbsp;range,&nbsp;`setUTCFullYear`&nbsp;attempts&nbsp;to&nbsp;update</span></span></span></div><div class="line"><a name="line681"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;the&nbsp;other&nbsp;parameters&nbsp;and&nbsp;the&nbsp;date&nbsp;information&nbsp;in&nbsp;the&nbsp;`Date`&nbsp;object&nbsp;accordingly.&nbsp;For&nbsp;example,&nbsp;if&nbsp;you</span></span></span></div><div class="line"><a name="line682"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;specify&nbsp;15&nbsp;for&nbsp;`monthValue`,&nbsp;the&nbsp;year&nbsp;is&nbsp;incremented&nbsp;by&nbsp;1&nbsp;(year&nbsp;+&nbsp;1),&nbsp;and&nbsp;3&nbsp;is&nbsp;used&nbsp;for&nbsp;the&nbsp;month.</span></span></span></div><div class="line"><a name="line683"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line684"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;theBigDay&nbsp;=&nbsp;new&nbsp;Date();</span></span></span></div><div class="line"><a name="line685"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;theBigDay.setUTCFullYear(1997);</span></span></span></div><div class="line"><a name="line686"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line687"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@param</span></span><span>&nbsp;</span><span class="other meta jsdoc"><span class="entity name type instance jsdoc"><span>{Number}</span></span><span>&nbsp;</span><span class="variable other jsdoc"><span>yearValue</span></span><span>&nbsp;</span><span class="other description jsdoc"><span>An&nbsp;integer&nbsp;specifying&nbsp;the&nbsp;numeric&nbsp;value&nbsp;of&nbsp;the&nbsp;year,&nbsp;for&nbsp;example,&nbsp;1995.</span></span></span></span></span></div><div class="line"><a name="line688"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@param</span></span><span>&nbsp;</span><span class="other meta jsdoc"><span class="entity name type instance jsdoc"><span>{Number}</span></span><span>&nbsp;</span><span class="variable other jsdoc"><span>monthValue</span></span><span>&nbsp;</span><span class="other description jsdoc"><span>An&nbsp;integer&nbsp;between&nbsp;0&nbsp;and&nbsp;11&nbsp;representing&nbsp;the&nbsp;months&nbsp;January&nbsp;through</span></span></span></span></span></div><div class="line"><a name="line689"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;December.</span></span></span></div><div class="line"><a name="line690"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@param</span></span><span>&nbsp;</span><span class="other meta jsdoc"><span class="entity name type instance jsdoc"><span>{Number}</span></span><span>&nbsp;</span><span class="variable other jsdoc"><span>dayValue</span></span><span>&nbsp;</span><span class="other description jsdoc"><span>An&nbsp;integer&nbsp;between&nbsp;1&nbsp;and&nbsp;31&nbsp;representing&nbsp;the&nbsp;day&nbsp;of&nbsp;the&nbsp;month.&nbsp;If&nbsp;you</span></span></span></span></span></div><div class="line"><a name="line691"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;specify&nbsp;the&nbsp;`dayValue`&nbsp;parameter,&nbsp;you&nbsp;must&nbsp;also&nbsp;specify&nbsp;the&nbsp;`monthValue`.</span></span></span></div><div class="line"><a name="line692"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@return</span></span><span>&nbsp;</span><span class="other meta jsdoc"><span class="entity name type instance jsdoc"><span>{Number}</span></span><span>&nbsp;</span><span class="variable other jsdoc"><span>New</span></span><span>&nbsp;</span><span class="other description jsdoc"><span>date&nbsp;represented&nbsp;as&nbsp;milliseconds.</span></span></span></span></span></div><div class="line"><a name="line693"><span class="source js"><span class="comment block documentation js"><span>&nbsp;</span><span class="punctuation definition comment js"><span>*/</span></span></span></span></div><div class="line"><a name="line694"><span class="source js"><span>&nbsp;</span></span></div><div class="line"><a name="line695"><span class="source js"><span class="comment block documentation js"><span class="punctuation definition comment js"><span>/**</span></span></span></span></div><div class="line"><a name="line696"><a name="Date-method-setUTCHours"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@method</span></span><span>&nbsp;setUTCHours</span></span></span></div><div class="line"><a name="line697"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;Sets&nbsp;the&nbsp;hour&nbsp;(0-23)&nbsp;for&nbsp;a&nbsp;specified&nbsp;date&nbsp;according&nbsp;to&nbsp;universal&nbsp;time.</span></span></span></div><div class="line"><a name="line698"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line699"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;If&nbsp;you&nbsp;do&nbsp;not&nbsp;specify&nbsp;the&nbsp;`minutesValue`,&nbsp;`secondsValue`,&nbsp;and&nbsp;`msValue`&nbsp;parameters,&nbsp;the&nbsp;values</span></span></span></div><div class="line"><a name="line700"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;returned&nbsp;from&nbsp;the&nbsp;`getUTCMinutes`,&nbsp;`getUTCSeconds`,&nbsp;and&nbsp;`getUTCMilliseconds`&nbsp;methods&nbsp;are&nbsp;used.</span></span></span></div><div class="line"><a name="line701"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line702"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;If&nbsp;a&nbsp;parameter&nbsp;you&nbsp;specify&nbsp;is&nbsp;outside&nbsp;of&nbsp;the&nbsp;expected&nbsp;range,&nbsp;`setUTCHours`&nbsp;attempts&nbsp;to&nbsp;update&nbsp;the</span></span></span></div><div class="line"><a name="line703"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;date&nbsp;information&nbsp;in&nbsp;the&nbsp;`Date`&nbsp;object&nbsp;accordingly.&nbsp;For&nbsp;example,&nbsp;if&nbsp;you&nbsp;use&nbsp;100&nbsp;for&nbsp;`secondsValue`,</span></span></span></div><div class="line"><a name="line704"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;the&nbsp;minutes&nbsp;will&nbsp;be&nbsp;incremented&nbsp;by&nbsp;1&nbsp;(min&nbsp;+&nbsp;1),&nbsp;and&nbsp;40&nbsp;will&nbsp;be&nbsp;used&nbsp;for&nbsp;seconds.</span></span></span></div><div class="line"><a name="line705"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line706"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;theBigDay&nbsp;=&nbsp;new&nbsp;Date();</span></span></span></div><div class="line"><a name="line707"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;theBigDay.setUTCHours(8);</span></span></span></div><div class="line"><a name="line708"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line709"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@param</span></span><span>&nbsp;</span><span class="other meta jsdoc"><span class="entity name type instance jsdoc"><span>{Number}</span></span><span>&nbsp;</span><span class="variable other jsdoc"><span>hoursValue</span></span><span>&nbsp;</span><span class="other description jsdoc"><span>An&nbsp;integer&nbsp;between&nbsp;0&nbsp;and&nbsp;23,&nbsp;representing&nbsp;the&nbsp;hour.</span></span></span></span></span></div><div class="line"><a name="line710"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@param</span></span><span>&nbsp;</span><span class="other meta jsdoc"><span class="entity name type instance jsdoc"><span>{Number}</span></span><span>&nbsp;</span><span class="variable other jsdoc"><span>minutesValue</span></span><span>&nbsp;</span><span class="other description jsdoc"><span>An&nbsp;integer&nbsp;between&nbsp;0&nbsp;and&nbsp;59,&nbsp;representing&nbsp;the&nbsp;minutes.</span></span></span></span></span></div><div class="line"><a name="line711"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@param</span></span><span>&nbsp;</span><span class="other meta jsdoc"><span class="entity name type instance jsdoc"><span>{Number}</span></span><span>&nbsp;</span><span class="variable other jsdoc"><span>secondsValue</span></span><span>&nbsp;</span><span class="other description jsdoc"><span>An&nbsp;integer&nbsp;between&nbsp;0&nbsp;and&nbsp;59,&nbsp;representing&nbsp;the&nbsp;seconds.&nbsp;If&nbsp;you&nbsp;specify&nbsp;the</span></span></span></span></span></div><div class="line"><a name="line712"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;`secondsValue`&nbsp;parameter,&nbsp;you&nbsp;must&nbsp;also&nbsp;specify&nbsp;the&nbsp;`minutesValue`.</span></span></span></div><div class="line"><a name="line713"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@param</span></span><span>&nbsp;</span><span class="other meta jsdoc"><span class="entity name type instance jsdoc"><span>{Number}</span></span><span>&nbsp;</span><span class="variable other jsdoc"><span>msValue</span></span><span>&nbsp;</span><span class="other description jsdoc"><span>A&nbsp;number&nbsp;between&nbsp;0&nbsp;and&nbsp;999,&nbsp;representing&nbsp;the&nbsp;milliseconds.&nbsp;If&nbsp;you&nbsp;specify&nbsp;the</span></span></span></span></span></div><div class="line"><a name="line714"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;`msValue`&nbsp;parameter,&nbsp;you&nbsp;must&nbsp;also&nbsp;specify&nbsp;the&nbsp;`minutesValue`&nbsp;and&nbsp;`secondsValue`.</span></span></span></div><div class="line"><a name="line715"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@return</span></span><span>&nbsp;</span><span class="other meta jsdoc"><span class="entity name type instance jsdoc"><span>{Number}</span></span><span>&nbsp;</span><span class="variable other jsdoc"><span>New</span></span><span>&nbsp;</span><span class="other description jsdoc"><span>date&nbsp;represented&nbsp;as&nbsp;milliseconds.</span></span></span></span></span></div><div class="line"><a name="line716"><span class="source js"><span class="comment block documentation js"><span>&nbsp;</span><span class="punctuation definition comment js"><span>*/</span></span></span></span></div><div class="line"><a name="line717"><span class="source js"><span>&nbsp;</span></span></div><div class="line"><a name="line718"><span class="source js"><span class="comment block documentation js"><span class="punctuation definition comment js"><span>/**</span></span></span></span></div><div class="line"><a name="line719"><a name="Date-method-setUTCMilliseconds"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@method</span></span><span>&nbsp;setUTCMilliseconds</span></span></span></div><div class="line"><a name="line720"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;Sets&nbsp;the&nbsp;milliseconds&nbsp;(0-999)&nbsp;for&nbsp;a&nbsp;specified&nbsp;date&nbsp;according&nbsp;to&nbsp;universal&nbsp;time.</span></span></span></div><div class="line"><a name="line721"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line722"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;If&nbsp;a&nbsp;parameter&nbsp;you&nbsp;specify&nbsp;is&nbsp;outside&nbsp;of&nbsp;the&nbsp;expected&nbsp;range,&nbsp;`setUTCMilliseconds`&nbsp;attempts&nbsp;to</span></span></span></div><div class="line"><a name="line723"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;update&nbsp;the&nbsp;date&nbsp;information&nbsp;in&nbsp;the&nbsp;`Date`&nbsp;object&nbsp;accordingly.&nbsp;For&nbsp;example,&nbsp;if&nbsp;you&nbsp;use&nbsp;1100&nbsp;for</span></span></span></div><div class="line"><a name="line724"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;`millisecondsValue`,&nbsp;the&nbsp;seconds&nbsp;stored&nbsp;in&nbsp;the&nbsp;Date&nbsp;object&nbsp;will&nbsp;be&nbsp;incremented&nbsp;by&nbsp;1,&nbsp;and&nbsp;100&nbsp;will</span></span></span></div><div class="line"><a name="line725"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;be&nbsp;used&nbsp;for&nbsp;milliseconds.</span></span></span></div><div class="line"><a name="line726"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line727"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;theBigDay&nbsp;=&nbsp;new&nbsp;Date();</span></span></span></div><div class="line"><a name="line728"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;theBigDay.setUTCMilliseconds(500);</span></span></span></div><div class="line"><a name="line729"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line730"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@param</span></span><span>&nbsp;</span><span class="other meta jsdoc"><span class="entity name type instance jsdoc"><span>{Number}</span></span><span>&nbsp;</span><span class="variable other jsdoc"><span>millisecondsValue</span></span><span>&nbsp;</span><span class="other description jsdoc"><span>A&nbsp;number&nbsp;between&nbsp;0&nbsp;and&nbsp;999,&nbsp;representing&nbsp;the&nbsp;milliseconds.</span></span></span></span></span></div><div class="line"><a name="line731"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@return</span></span><span>&nbsp;</span><span class="other meta jsdoc"><span class="entity name type instance jsdoc"><span>{Number}</span></span><span>&nbsp;</span><span class="variable other jsdoc"><span>New</span></span><span>&nbsp;</span><span class="other description jsdoc"><span>date&nbsp;represented&nbsp;as&nbsp;milliseconds.</span></span></span></span></span></div><div class="line"><a name="line732"><span class="source js"><span class="comment block documentation js"><span>&nbsp;</span><span class="punctuation definition comment js"><span>*/</span></span></span></span></div><div class="line"><a name="line733"><span class="source js"><span>&nbsp;</span></span></div><div class="line"><a name="line734"><span class="source js"><span class="comment block documentation js"><span class="punctuation definition comment js"><span>/**</span></span></span></span></div><div class="line"><a name="line735"><a name="Date-method-setUTCMinutes"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@method</span></span><span>&nbsp;setUTCMinutes</span></span></span></div><div class="line"><a name="line736"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;Sets&nbsp;the&nbsp;minutes&nbsp;(0-59)&nbsp;for&nbsp;a&nbsp;specified&nbsp;date&nbsp;according&nbsp;to&nbsp;universal&nbsp;time.</span></span></span></div><div class="line"><a name="line737"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line738"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;If&nbsp;you&nbsp;do&nbsp;not&nbsp;specify&nbsp;the&nbsp;`secondsValue`&nbsp;and&nbsp;`msValue`&nbsp;parameters,&nbsp;the&nbsp;values&nbsp;returned&nbsp;from</span></span></span></div><div class="line"><a name="line739"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;`getUTCSeconds`&nbsp;and&nbsp;`getUTCMilliseconds`&nbsp;methods&nbsp;are&nbsp;used.</span></span></span></div><div class="line"><a name="line740"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line741"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;If&nbsp;a&nbsp;parameter&nbsp;you&nbsp;specify&nbsp;is&nbsp;outside&nbsp;of&nbsp;the&nbsp;expected&nbsp;range,&nbsp;`setUTCMinutes`&nbsp;attempts&nbsp;to&nbsp;update&nbsp;the</span></span></span></div><div class="line"><a name="line742"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;date&nbsp;information&nbsp;in&nbsp;the&nbsp;`Date`&nbsp;object&nbsp;accordingly.&nbsp;For&nbsp;example,&nbsp;if&nbsp;you&nbsp;use&nbsp;100&nbsp;for&nbsp;`secondsValue`,</span></span></span></div><div class="line"><a name="line743"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;the&nbsp;minutes&nbsp;(`minutesValue`)&nbsp;will&nbsp;be&nbsp;incremented&nbsp;by&nbsp;1&nbsp;(`minutesValue`&nbsp;+&nbsp;1),&nbsp;and&nbsp;40&nbsp;will&nbsp;be&nbsp;used&nbsp;for</span></span></span></div><div class="line"><a name="line744"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;seconds.</span></span></span></div><div class="line"><a name="line745"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line746"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;theBigDay&nbsp;=&nbsp;new&nbsp;Date();</span></span></span></div><div class="line"><a name="line747"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;theBigDay.setUTCMinutes(43);</span></span></span></div><div class="line"><a name="line748"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line749"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@param</span></span><span>&nbsp;</span><span class="other meta jsdoc"><span class="entity name type instance jsdoc"><span>{Number}</span></span><span>&nbsp;</span><span class="variable other jsdoc"><span>minutesValue</span></span><span>&nbsp;</span><span class="other description jsdoc"><span>An&nbsp;integer&nbsp;between&nbsp;0&nbsp;and&nbsp;59,&nbsp;representing&nbsp;the&nbsp;minutes.</span></span></span></span></span></div><div class="line"><a name="line750"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@param</span></span><span>&nbsp;</span><span class="other meta jsdoc"><span class="entity name type instance jsdoc"><span>{Number}</span></span><span>&nbsp;</span><span class="variable other jsdoc"><span>secondsValue</span></span><span>&nbsp;</span><span class="other description jsdoc"><span>An&nbsp;integer&nbsp;between&nbsp;0&nbsp;and&nbsp;59,&nbsp;representing&nbsp;the&nbsp;seconds.&nbsp;If&nbsp;you&nbsp;specify&nbsp;the&nbsp;`secondsValue`&nbsp;parameter,&nbsp;you&nbsp;must&nbsp;also&nbsp;specify&nbsp;the&nbsp;`minutesValue`.</span></span></span></span></span></div><div class="line"><a name="line751"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@param</span></span><span>&nbsp;</span><span class="other meta jsdoc"><span class="entity name type instance jsdoc"><span>{Number}</span></span><span>&nbsp;</span><span class="variable other jsdoc"><span>msValue</span></span><span>&nbsp;</span><span class="other description jsdoc"><span>A&nbsp;number&nbsp;between&nbsp;0&nbsp;and&nbsp;999,&nbsp;representing&nbsp;the&nbsp;milliseconds.&nbsp;If&nbsp;you&nbsp;specify&nbsp;the&nbsp;`msValue`&nbsp;parameter,&nbsp;you&nbsp;must&nbsp;also&nbsp;specify&nbsp;the&nbsp;`minutesValue`&nbsp;and&nbsp;`secondsValue`.</span></span></span></span></span></div><div class="line"><a name="line752"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@return</span></span><span>&nbsp;</span><span class="other meta jsdoc"><span class="entity name type instance jsdoc"><span>{Number}</span></span><span>&nbsp;</span><span class="variable other jsdoc"><span>New</span></span><span>&nbsp;</span><span class="other description jsdoc"><span>date&nbsp;represented&nbsp;as&nbsp;milliseconds.</span></span></span></span></span></div><div class="line"><a name="line753"><span class="source js"><span class="comment block documentation js"><span>&nbsp;</span><span class="punctuation definition comment js"><span>*/</span></span></span></span></div><div class="line"><a name="line754"><span class="source js"><span>&nbsp;</span></span></div><div class="line"><a name="line755"><span class="source js"><span class="comment block documentation js"><span class="punctuation definition comment js"><span>/**</span></span></span></span></div><div class="line"><a name="line756"><a name="Date-method-setUTCMonth"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@method</span></span><span>&nbsp;setUTCMonth</span></span></span></div><div class="line"><a name="line757"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;Sets&nbsp;the&nbsp;month&nbsp;(0-11)&nbsp;for&nbsp;a&nbsp;specified&nbsp;date&nbsp;according&nbsp;to&nbsp;universal&nbsp;time.</span></span></span></div><div class="line"><a name="line758"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line759"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;If&nbsp;you&nbsp;do&nbsp;not&nbsp;specify&nbsp;the&nbsp;`dayValue`&nbsp;parameter,&nbsp;the&nbsp;value&nbsp;returned&nbsp;from&nbsp;the&nbsp;`getUTCDate`&nbsp;method&nbsp;is</span></span></span></div><div class="line"><a name="line760"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;used.</span></span></span></div><div class="line"><a name="line761"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line762"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;If&nbsp;a&nbsp;parameter&nbsp;you&nbsp;specify&nbsp;is&nbsp;outside&nbsp;of&nbsp;the&nbsp;expected&nbsp;range,&nbsp;`setUTCMonth`&nbsp;attempts&nbsp;to&nbsp;update&nbsp;the</span></span></span></div><div class="line"><a name="line763"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;date&nbsp;information&nbsp;in&nbsp;the&nbsp;`Date`&nbsp;object&nbsp;accordingly.&nbsp;For&nbsp;example,&nbsp;if&nbsp;you&nbsp;use&nbsp;15&nbsp;for&nbsp;`monthValue`,&nbsp;the</span></span></span></div><div class="line"><a name="line764"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;year&nbsp;will&nbsp;be&nbsp;incremented&nbsp;by&nbsp;1&nbsp;(year&nbsp;+&nbsp;1),&nbsp;and&nbsp;3&nbsp;will&nbsp;be&nbsp;used&nbsp;for&nbsp;month.</span></span></span></div><div class="line"><a name="line765"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line766"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;theBigDay&nbsp;=&nbsp;new&nbsp;Date();</span></span></span></div><div class="line"><a name="line767"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;theBigDay.setUTCMonth(11);</span></span></span></div><div class="line"><a name="line768"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line769"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@param</span></span><span>&nbsp;</span><span class="other meta jsdoc"><span class="entity name type instance jsdoc"><span>{Number}</span></span><span>&nbsp;</span><span class="variable other jsdoc"><span>monthValue</span></span><span>&nbsp;</span><span class="other description jsdoc"><span>An&nbsp;integer&nbsp;between&nbsp;0&nbsp;and&nbsp;11,&nbsp;representing&nbsp;the&nbsp;months&nbsp;January&nbsp;through</span></span></span></span></span></div><div class="line"><a name="line770"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;December.</span></span></span></div><div class="line"><a name="line771"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@param</span></span><span>&nbsp;</span><span class="other meta jsdoc"><span class="entity name type instance jsdoc"><span>{Number}</span></span><span>&nbsp;</span><span class="variable other jsdoc"><span>dayValue</span></span><span>&nbsp;</span><span class="other description jsdoc"><span>An&nbsp;integer&nbsp;from&nbsp;1&nbsp;to&nbsp;31,&nbsp;representing&nbsp;the&nbsp;day&nbsp;of&nbsp;the&nbsp;month.</span></span></span></span></span></div><div class="line"><a name="line772"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@return</span></span><span>&nbsp;</span><span class="other meta jsdoc"><span class="entity name type instance jsdoc"><span>{Number}</span></span><span>&nbsp;</span><span class="variable other jsdoc"><span>New</span></span><span>&nbsp;</span><span class="other description jsdoc"><span>date&nbsp;represented&nbsp;as&nbsp;milliseconds.</span></span></span></span></span></div><div class="line"><a name="line773"><span class="source js"><span class="comment block documentation js"><span>&nbsp;</span><span class="punctuation definition comment js"><span>*/</span></span></span></span></div><div class="line"><a name="line774"><span class="source js"><span>&nbsp;</span></span></div><div class="line"><a name="line775"><span class="source js"><span class="comment block documentation js"><span class="punctuation definition comment js"><span>/**</span></span></span></span></div><div class="line"><a name="line776"><a name="Date-method-setUTCSeconds"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@method</span></span><span>&nbsp;setUTCSeconds</span></span></span></div><div class="line"><a name="line777"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;Sets&nbsp;the&nbsp;seconds&nbsp;(0-59)&nbsp;for&nbsp;a&nbsp;specified&nbsp;date&nbsp;according&nbsp;to&nbsp;universal&nbsp;time.</span></span></span></div><div class="line"><a name="line778"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line779"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;If&nbsp;you&nbsp;do&nbsp;not&nbsp;specify&nbsp;the&nbsp;`msValue`&nbsp;parameter,&nbsp;the&nbsp;value&nbsp;returned&nbsp;from&nbsp;the&nbsp;`getUTCMilliseconds`</span></span></span></div><div class="line"><a name="line780"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;methods&nbsp;is&nbsp;used.</span></span></span></div><div class="line"><a name="line781"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line782"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;If&nbsp;a&nbsp;parameter&nbsp;you&nbsp;specify&nbsp;is&nbsp;outside&nbsp;of&nbsp;the&nbsp;expected&nbsp;range,&nbsp;`setUTCSeconds`&nbsp;attempts&nbsp;to&nbsp;update&nbsp;the</span></span></span></div><div class="line"><a name="line783"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;date&nbsp;information&nbsp;in&nbsp;the&nbsp;`Date`&nbsp;object&nbsp;accordingly.&nbsp;For&nbsp;example,&nbsp;if&nbsp;you&nbsp;use&nbsp;100&nbsp;for&nbsp;`secondsValue`,</span></span></span></div><div class="line"><a name="line784"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;the&nbsp;minutes&nbsp;stored&nbsp;in&nbsp;the&nbsp;`Date`&nbsp;object&nbsp;will&nbsp;be&nbsp;incremented&nbsp;by&nbsp;1,&nbsp;and&nbsp;40&nbsp;will&nbsp;be&nbsp;used&nbsp;for&nbsp;seconds.</span></span></span></div><div class="line"><a name="line785"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line786"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;theBigDay&nbsp;=&nbsp;new&nbsp;Date();</span></span></span></div><div class="line"><a name="line787"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;theBigDay.setUTCSeconds(20);</span></span></span></div><div class="line"><a name="line788"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line789"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@param</span></span><span>&nbsp;</span><span class="other meta jsdoc"><span class="entity name type instance jsdoc"><span>{Number}</span></span><span>&nbsp;</span><span class="variable other jsdoc"><span>secondsValue</span></span><span>&nbsp;</span><span class="other description jsdoc"><span>An&nbsp;integer&nbsp;between&nbsp;0&nbsp;and&nbsp;59.</span></span></span></span></span></div><div class="line"><a name="line790"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@param</span></span><span>&nbsp;</span><span class="other meta jsdoc"><span class="entity name type instance jsdoc"><span>{Number}</span></span><span>&nbsp;</span><span class="variable other jsdoc"><span>msValue</span></span><span>&nbsp;</span><span class="other description jsdoc"><span>A&nbsp;number&nbsp;between&nbsp;0&nbsp;and&nbsp;999,&nbsp;representing&nbsp;the&nbsp;milliseconds.</span></span></span></span></span></div><div class="line"><a name="line791"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@return</span></span><span>&nbsp;</span><span class="other meta jsdoc"><span class="entity name type instance jsdoc"><span>{Number}</span></span><span>&nbsp;</span><span class="variable other jsdoc"><span>New</span></span><span>&nbsp;</span><span class="other description jsdoc"><span>date&nbsp;represented&nbsp;as&nbsp;milliseconds.</span></span></span></span></span></div><div class="line"><a name="line792"><span class="source js"><span class="comment block documentation js"><span>&nbsp;</span><span class="punctuation definition comment js"><span>*/</span></span></span></span></div><div class="line"><a name="line793"><span class="source js"><span>&nbsp;</span></span></div><div class="line"><a name="line794"><span class="source js"><span class="comment block documentation js"><span class="punctuation definition comment js"><span>/**</span></span></span></span></div><div class="line"><a name="line795"><a name="Date-method-toDateString"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@method</span></span><span>&nbsp;toDateString</span></span></span></div><div class="line"><a name="line796"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;Returns&nbsp;the&nbsp;&quot;date&quot;&nbsp;portion&nbsp;of&nbsp;the&nbsp;Date&nbsp;as&nbsp;a&nbsp;human-readable&nbsp;string&nbsp;in&nbsp;American&nbsp;English.</span></span></span></div><div class="line"><a name="line797"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line798"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;{@link&nbsp;Date}&nbsp;instances&nbsp;refer&nbsp;to&nbsp;a&nbsp;specific&nbsp;point&nbsp;in&nbsp;time.&nbsp;Calling&nbsp;`toString`&nbsp;will&nbsp;return&nbsp;the</span></span></span></div><div class="line"><a name="line799"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;date&nbsp;formatted&nbsp;in&nbsp;a&nbsp;human&nbsp;readable&nbsp;form&nbsp;in&nbsp;American&nbsp;English.&nbsp;In&nbsp;SpiderMonkey,&nbsp;this&nbsp;consists&nbsp;of&nbsp;the</span></span></span></div><div class="line"><a name="line800"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;date&nbsp;portion&nbsp;(day,&nbsp;month,&nbsp;and&nbsp;year)&nbsp;followed&nbsp;by&nbsp;the&nbsp;time&nbsp;portion&nbsp;(hours,&nbsp;minutes,&nbsp;seconds,&nbsp;and&nbsp;time</span></span></span></div><div class="line"><a name="line801"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;zone).&nbsp;Sometimes&nbsp;it&nbsp;is&nbsp;desirable&nbsp;to&nbsp;obtain&nbsp;a&nbsp;string&nbsp;of&nbsp;the&nbsp;date&nbsp;portion;&nbsp;such&nbsp;a&nbsp;thing&nbsp;can&nbsp;be</span></span></span></div><div class="line"><a name="line802"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;accomplished&nbsp;with&nbsp;the&nbsp;`toDateString`&nbsp;method.</span></span></span></div><div class="line"><a name="line803"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line804"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;The&nbsp;`toDateString`&nbsp;method&nbsp;is&nbsp;especially&nbsp;useful&nbsp;because&nbsp;compliant&nbsp;engines&nbsp;implementing&nbsp;ECMA-262&nbsp;may</span></span></span></div><div class="line"><a name="line805"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;differ&nbsp;in&nbsp;the&nbsp;string&nbsp;obtained&nbsp;from&nbsp;`toString`&nbsp;for&nbsp;`Date`&nbsp;objects,&nbsp;as&nbsp;the&nbsp;format&nbsp;is&nbsp;implementation-</span></span></span></div><div class="line"><a name="line806"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;dependent&nbsp;and&nbsp;simple&nbsp;string&nbsp;slicing&nbsp;approaches&nbsp;may&nbsp;not&nbsp;produce&nbsp;consistent&nbsp;results&nbsp;across&nbsp;multiple</span></span></span></div><div class="line"><a name="line807"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;engines.</span></span></span></div><div class="line"><a name="line808"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line809"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;d&nbsp;=&nbsp;new&nbsp;Date(1993,&nbsp;6,&nbsp;28,&nbsp;14,&nbsp;39,&nbsp;7);</span></span></span></div><div class="line"><a name="line810"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;println(d.toString());&nbsp;//&nbsp;prints&nbsp;Wed&nbsp;Jul&nbsp;28&nbsp;1993&nbsp;14:39:07&nbsp;GMT-0600&nbsp;(PDT)</span></span></span></div><div class="line"><a name="line811"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;println(d.toDateString());&nbsp;//&nbsp;prints&nbsp;Wed&nbsp;Jul&nbsp;28&nbsp;1993</span></span></span></div><div class="line"><a name="line812"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line813"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@return</span></span><span>&nbsp;</span><span class="other meta jsdoc"><span class="entity name type instance jsdoc"><span>{String}</span></span><span>&nbsp;</span><span class="variable other jsdoc"><span>Human</span></span><span class="other description jsdoc"><span>-readable&nbsp;string,&nbsp;in&nbsp;local&nbsp;time.</span></span></span></span></span></div><div class="line"><a name="line814"><span class="source js"><span class="comment block documentation js"><span>&nbsp;</span><span class="punctuation definition comment js"><span>*/</span></span></span></span></div><div class="line"><a name="line815"><span class="source js"><span>&nbsp;</span></span></div><div class="line"><a name="line816"><span class="source js"><span class="comment block documentation js"><span class="punctuation definition comment js"><span>/**</span></span></span></span></div><div class="line"><a name="line817"><a name="Date-method-toLocaleDateString"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@method</span></span><span>&nbsp;toLocaleDateString</span></span></span></div><div class="line"><a name="line818"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;Returns&nbsp;the&nbsp;&quot;date&quot;&nbsp;portion&nbsp;of&nbsp;the&nbsp;Date&nbsp;as&nbsp;a&nbsp;string,&nbsp;using&nbsp;the&nbsp;current&nbsp;locale&#39;s</span></span></span></div><div class="line"><a name="line819"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;conventions.</span></span></span></div><div class="line"><a name="line820"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line821"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;The&nbsp;`toLocaleDateString`&nbsp;method&nbsp;relies&nbsp;on&nbsp;the&nbsp;underlying&nbsp;operating&nbsp;system&nbsp;in&nbsp;formatting&nbsp;dates.&nbsp;It</span></span></span></div><div class="line"><a name="line822"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;converts&nbsp;the&nbsp;date&nbsp;to&nbsp;a&nbsp;string&nbsp;using&nbsp;the&nbsp;formatting&nbsp;convention&nbsp;of&nbsp;the&nbsp;operating&nbsp;system&nbsp;where&nbsp;the</span></span></span></div><div class="line"><a name="line823"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;script&nbsp;is&nbsp;running.&nbsp;For&nbsp;example,&nbsp;in&nbsp;the&nbsp;United&nbsp;States,&nbsp;the&nbsp;month&nbsp;appears&nbsp;before&nbsp;the&nbsp;date&nbsp;(04/15/98),</span></span></span></div><div class="line"><a name="line824"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;whereas&nbsp;in&nbsp;Germany&nbsp;the&nbsp;date&nbsp;appears&nbsp;before&nbsp;the&nbsp;month&nbsp;(15.04.98).&nbsp;If&nbsp;the&nbsp;operating&nbsp;system&nbsp;is&nbsp;not</span></span></span></div><div class="line"><a name="line825"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;year-2000&nbsp;compliant&nbsp;and&nbsp;does&nbsp;not&nbsp;use&nbsp;the&nbsp;full&nbsp;year&nbsp;for&nbsp;years&nbsp;before&nbsp;1900&nbsp;or&nbsp;over&nbsp;2000,</span></span></span></div><div class="line"><a name="line826"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;`toLocaleDateString`&nbsp;returns&nbsp;a&nbsp;string&nbsp;that&nbsp;is&nbsp;not&nbsp;year-2000&nbsp;compliant.&nbsp;`toLocaleDateString`&nbsp;behaves</span></span></span></div><div class="line"><a name="line827"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;similarly&nbsp;to&nbsp;`toString`&nbsp;when&nbsp;converting&nbsp;a&nbsp;year&nbsp;that&nbsp;the&nbsp;operating&nbsp;system&nbsp;does&nbsp;not&nbsp;properly&nbsp;format.</span></span></span></div><div class="line"><a name="line828"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line829"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;Methods&nbsp;such&nbsp;as&nbsp;`getDate`,&nbsp;`getMonth`,&nbsp;and&nbsp;`getFullYear`&nbsp;give&nbsp;more&nbsp;portable&nbsp;results&nbsp;than</span></span></span></div><div class="line"><a name="line830"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;`toLocaleDateString`.&nbsp;Use&nbsp;`toLocaleDateString`&nbsp;when&nbsp;the&nbsp;intent&nbsp;is&nbsp;to&nbsp;display&nbsp;to&nbsp;the&nbsp;user&nbsp;a&nbsp;string</span></span></span></div><div class="line"><a name="line831"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;formatted&nbsp;using&nbsp;the&nbsp;regional&nbsp;format&nbsp;chosen&nbsp;by&nbsp;the&nbsp;user.&nbsp;Be&nbsp;aware&nbsp;that&nbsp;this&nbsp;method,&nbsp;due&nbsp;to&nbsp;its</span></span></span></div><div class="line"><a name="line832"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;nature,&nbsp;behaves&nbsp;differently&nbsp;depending&nbsp;on&nbsp;the&nbsp;operating&nbsp;system&nbsp;and&nbsp;on&nbsp;the&nbsp;user&#39;s&nbsp;settings.</span></span></span></div><div class="line"><a name="line833"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line834"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;In&nbsp;the&nbsp;following&nbsp;example,&nbsp;`today`&nbsp;is&nbsp;a&nbsp;`Date`&nbsp;object:</span></span></span></div><div class="line"><a name="line835"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line836"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;today&nbsp;=&nbsp;new&nbsp;Date(95,11,18,17,28,35)&nbsp;//months&nbsp;are&nbsp;represented&nbsp;by&nbsp;0&nbsp;to&nbsp;11</span></span></span></div><div class="line"><a name="line837"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;today.toLocaleDateString()</span></span></span></div><div class="line"><a name="line838"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line839"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;In&nbsp;this&nbsp;example,&nbsp;`toLocaleDateString`&nbsp;returns&nbsp;a&nbsp;string&nbsp;value&nbsp;that&nbsp;is&nbsp;similar&nbsp;to&nbsp;the&nbsp;following&nbsp;form.</span></span></span></div><div class="line"><a name="line840"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;The&nbsp;exact&nbsp;format&nbsp;depends&nbsp;on&nbsp;the&nbsp;platform,&nbsp;locale&nbsp;and&nbsp;user&#39;s&nbsp;settings.</span></span></span></div><div class="line"><a name="line841"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line842"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;12/18/95</span></span></span></div><div class="line"><a name="line843"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line844"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;You&nbsp;shouldn&#39;t&nbsp;use&nbsp;this&nbsp;method&nbsp;in&nbsp;contexts&nbsp;where&nbsp;you&nbsp;rely&nbsp;on&nbsp;a&nbsp;particular&nbsp;format&nbsp;or&nbsp;locale.</span></span></span></div><div class="line"><a name="line845"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line846"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&quot;Last&nbsp;visit:&nbsp;&quot;&nbsp;+&nbsp;someDate.toLocaleDateString();&nbsp;//&nbsp;Good&nbsp;example</span></span></span></div><div class="line"><a name="line847"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&quot;Last&nbsp;visit&nbsp;was&nbsp;at&nbsp;&quot;&nbsp;+&nbsp;someDate.toLocaleDateString();&nbsp;//&nbsp;Bad&nbsp;example</span></span></span></div><div class="line"><a name="line848"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line849"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@return</span></span><span>&nbsp;</span><span class="other meta jsdoc"><span class="entity name type instance jsdoc"><span>{String}</span></span><span>&nbsp;</span><span class="variable other jsdoc"><span>Human</span></span><span class="other description jsdoc"><span>-readable&nbsp;string&nbsp;that&nbsp;may&nbsp;be&nbsp;formatted&nbsp;differently&nbsp;depending</span></span></span></span></span></div><div class="line"><a name="line850"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;on&nbsp;the&nbsp;country.</span></span></span></div><div class="line"><a name="line851"><span class="source js"><span class="comment block documentation js"><span>&nbsp;</span><span class="punctuation definition comment js"><span>*/</span></span></span></span></div><div class="line"><a name="line852"><span class="source js"><span>&nbsp;</span></span></div><div class="line"><a name="line853"><span class="source js"><span class="comment block documentation js"><span class="punctuation definition comment js"><span>/**</span></span></span></span></div><div class="line"><a name="line854"><a name="Date-method-toLocaleString"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@method</span></span><span>&nbsp;toLocaleString</span></span></span></div><div class="line"><a name="line855"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;Converts&nbsp;a&nbsp;date&nbsp;to&nbsp;a&nbsp;string,&nbsp;using&nbsp;the&nbsp;current&nbsp;locale&#39;s&nbsp;conventions.&nbsp;Overrides</span></span></span></div><div class="line"><a name="line856"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;the&nbsp;`Object.toLocaleString`&nbsp;method.</span></span></span></div><div class="line"><a name="line857"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line858"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;The&nbsp;`toLocaleString`&nbsp;method&nbsp;relies&nbsp;on&nbsp;the&nbsp;underlying&nbsp;operating&nbsp;system&nbsp;in&nbsp;formatting&nbsp;dates.&nbsp;It</span></span></span></div><div class="line"><a name="line859"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;converts&nbsp;the&nbsp;date&nbsp;to&nbsp;a&nbsp;string&nbsp;using&nbsp;the&nbsp;formatting&nbsp;convention&nbsp;of&nbsp;the&nbsp;operating&nbsp;system&nbsp;where&nbsp;the</span></span></span></div><div class="line"><a name="line860"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;script&nbsp;is&nbsp;running.&nbsp;For&nbsp;example,&nbsp;in&nbsp;the&nbsp;United&nbsp;States,&nbsp;the&nbsp;month&nbsp;appears&nbsp;before&nbsp;the&nbsp;date&nbsp;(04/15/98),</span></span></span></div><div class="line"><a name="line861"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;whereas&nbsp;in&nbsp;Germany&nbsp;the&nbsp;date&nbsp;appears&nbsp;before&nbsp;the&nbsp;month&nbsp;(15.04.98).&nbsp;If&nbsp;the&nbsp;operating&nbsp;system&nbsp;is&nbsp;not</span></span></span></div><div class="line"><a name="line862"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;year-2000&nbsp;compliant&nbsp;and&nbsp;does&nbsp;not&nbsp;use&nbsp;the&nbsp;full&nbsp;year&nbsp;for&nbsp;years&nbsp;before&nbsp;1900&nbsp;or&nbsp;over&nbsp;2000,</span></span></span></div><div class="line"><a name="line863"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;`toLocaleString`&nbsp;returns&nbsp;a&nbsp;string&nbsp;that&nbsp;is&nbsp;not&nbsp;year-2000&nbsp;compliant.&nbsp;`toLocaleString`&nbsp;behaves</span></span></span></div><div class="line"><a name="line864"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;similarly&nbsp;to&nbsp;`toString`&nbsp;when&nbsp;converting&nbsp;a&nbsp;year&nbsp;that&nbsp;the&nbsp;operating&nbsp;system&nbsp;does&nbsp;not&nbsp;properly&nbsp;format.</span></span></span></div><div class="line"><a name="line865"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line866"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;Methods&nbsp;such&nbsp;as&nbsp;`getDate`,&nbsp;`getMonth`,&nbsp;`getFullYear`,&nbsp;`getHours`,&nbsp;`getMinutes`,&nbsp;and&nbsp;`getSeconds`</span></span></span></div><div class="line"><a name="line867"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;give&nbsp;more&nbsp;portable&nbsp;results&nbsp;than&nbsp;`toLocaleString`.&nbsp;Use&nbsp;`toLocaleString`&nbsp;when&nbsp;the&nbsp;intent&nbsp;is&nbsp;to</span></span></span></div><div class="line"><a name="line868"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;display&nbsp;to&nbsp;the&nbsp;user&nbsp;a&nbsp;string&nbsp;formatted&nbsp;using&nbsp;the&nbsp;regional&nbsp;format&nbsp;chosen&nbsp;by&nbsp;the&nbsp;user.&nbsp;Be&nbsp;aware&nbsp;that</span></span></span></div><div class="line"><a name="line869"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;this&nbsp;method,&nbsp;due&nbsp;to&nbsp;its&nbsp;nature,&nbsp;behaves&nbsp;differently&nbsp;depending&nbsp;on&nbsp;the&nbsp;operating&nbsp;system&nbsp;and&nbsp;on&nbsp;the</span></span></span></div><div class="line"><a name="line870"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;user&#39;s&nbsp;settings.</span></span></span></div><div class="line"><a name="line871"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line872"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;In&nbsp;the&nbsp;following&nbsp;example,&nbsp;`today`&nbsp;is&nbsp;a&nbsp;`Date`&nbsp;object:</span></span></span></div><div class="line"><a name="line873"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line874"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;today&nbsp;=&nbsp;new&nbsp;Date(95,11,18,17,28,35);&nbsp;//months&nbsp;are&nbsp;represented&nbsp;by&nbsp;0&nbsp;to&nbsp;11</span></span></span></div><div class="line"><a name="line875"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;today.toLocaleString();</span></span></span></div><div class="line"><a name="line876"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line877"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;In&nbsp;this&nbsp;example,&nbsp;`toLocaleString`&nbsp;returns&nbsp;a&nbsp;string&nbsp;value&nbsp;that&nbsp;is&nbsp;similar&nbsp;to&nbsp;the&nbsp;following&nbsp;form.&nbsp;The</span></span></span></div><div class="line"><a name="line878"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;exact&nbsp;format&nbsp;depends&nbsp;on&nbsp;the&nbsp;platform,&nbsp;locale&nbsp;and&nbsp;user&#39;s&nbsp;settings.</span></span></span></div><div class="line"><a name="line879"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line880"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;12/18/95&nbsp;17:28:35</span></span></span></div><div class="line"><a name="line881"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line882"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;You&nbsp;shouldn&#39;t&nbsp;use&nbsp;this&nbsp;method&nbsp;in&nbsp;contexts&nbsp;where&nbsp;you&nbsp;rely&nbsp;on&nbsp;a&nbsp;particular&nbsp;format&nbsp;or&nbsp;locale.</span></span></span></div><div class="line"><a name="line883"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line884"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&quot;Last&nbsp;visit:&nbsp;&quot;&nbsp;+&nbsp;someDate.toLocaleString();&nbsp;//&nbsp;Good&nbsp;example</span></span></span></div><div class="line"><a name="line885"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&quot;Last&nbsp;visit&nbsp;was&nbsp;at&nbsp;&quot;&nbsp;+&nbsp;someDate.toLocaleString();&nbsp;//&nbsp;Bad&nbsp;example</span></span></span></div><div class="line"><a name="line886"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line887"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@return</span></span><span>&nbsp;</span><span class="other meta jsdoc"><span class="entity name type instance jsdoc"><span>{String}</span></span><span>&nbsp;</span><span class="variable other jsdoc"><span>Human</span></span><span class="other description jsdoc"><span>-readable&nbsp;string&nbsp;that&nbsp;may&nbsp;be&nbsp;formatted&nbsp;differently&nbsp;depending</span></span></span></span></span></div><div class="line"><a name="line888"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;on&nbsp;the&nbsp;country.</span></span></span></div><div class="line"><a name="line889"><span class="source js"><span class="comment block documentation js"><span>&nbsp;</span><span class="punctuation definition comment js"><span>*/</span></span></span></span></div><div class="line"><a name="line890"><span class="source js"><span>&nbsp;</span></span></div><div class="line"><a name="line891"><span class="source js"><span class="comment block documentation js"><span class="punctuation definition comment js"><span>/**</span></span></span></span></div><div class="line"><a name="line892"><a name="Date-method-toLocaleTimeString"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@method</span></span><span>&nbsp;toLocaleTimeString</span></span></span></div><div class="line"><a name="line893"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;Returns&nbsp;the&nbsp;&quot;time&quot;&nbsp;portion&nbsp;of&nbsp;the&nbsp;Date&nbsp;as&nbsp;a&nbsp;string,&nbsp;using&nbsp;the&nbsp;current&nbsp;locale&#39;s</span></span></span></div><div class="line"><a name="line894"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;conventions.</span></span></span></div><div class="line"><a name="line895"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line896"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;The&nbsp;`toLocaleTimeString`&nbsp;method&nbsp;relies&nbsp;on&nbsp;the&nbsp;underlying&nbsp;operating&nbsp;system&nbsp;in&nbsp;formatting&nbsp;dates.&nbsp;It</span></span></span></div><div class="line"><a name="line897"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;converts&nbsp;the&nbsp;date&nbsp;to&nbsp;a&nbsp;string&nbsp;using&nbsp;the&nbsp;formatting&nbsp;convention&nbsp;of&nbsp;the&nbsp;operating&nbsp;system&nbsp;where&nbsp;the</span></span></span></div><div class="line"><a name="line898"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;script&nbsp;is&nbsp;running.&nbsp;For&nbsp;example,&nbsp;in&nbsp;the&nbsp;United&nbsp;States,&nbsp;the&nbsp;month&nbsp;appears&nbsp;before&nbsp;the&nbsp;date&nbsp;(04/15/98),</span></span></span></div><div class="line"><a name="line899"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;whereas&nbsp;in&nbsp;Germany&nbsp;the&nbsp;date&nbsp;appears&nbsp;before&nbsp;the&nbsp;month&nbsp;(15.04.98).</span></span></span></div><div class="line"><a name="line900"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line901"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;Methods&nbsp;such&nbsp;as&nbsp;`getHours`,&nbsp;`getMinutes`,&nbsp;and&nbsp;`getSeconds`&nbsp;give&nbsp;more&nbsp;consistent&nbsp;results&nbsp;than</span></span></span></div><div class="line"><a name="line902"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;`toLocaleTimeString`.&nbsp;Use&nbsp;`toLocaleTimeString`&nbsp;when&nbsp;the&nbsp;intent&nbsp;is&nbsp;to&nbsp;display&nbsp;to&nbsp;the&nbsp;user&nbsp;a&nbsp;string</span></span></span></div><div class="line"><a name="line903"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;formatted&nbsp;using&nbsp;the&nbsp;regional&nbsp;format&nbsp;chosen&nbsp;by&nbsp;the&nbsp;user.&nbsp;Be&nbsp;aware&nbsp;that&nbsp;this&nbsp;method,&nbsp;due&nbsp;to&nbsp;its</span></span></span></div><div class="line"><a name="line904"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;nature,&nbsp;behaves&nbsp;differently&nbsp;depending&nbsp;on&nbsp;the&nbsp;operating&nbsp;system&nbsp;and&nbsp;on&nbsp;the&nbsp;user&#39;s&nbsp;settings.</span></span></span></div><div class="line"><a name="line905"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line906"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;In&nbsp;the&nbsp;following&nbsp;example,&nbsp;`today`&nbsp;is&nbsp;a&nbsp;`Date`&nbsp;object:</span></span></span></div><div class="line"><a name="line907"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line908"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;today&nbsp;=&nbsp;new&nbsp;Date(95,11,18,17,28,35)&nbsp;//months&nbsp;are&nbsp;represented&nbsp;by&nbsp;0&nbsp;to&nbsp;11</span></span></span></div><div class="line"><a name="line909"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;today.toLocaleTimeString()</span></span></span></div><div class="line"><a name="line910"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line911"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;In&nbsp;this&nbsp;example,&nbsp;`toLocaleTimeString`&nbsp;returns&nbsp;a&nbsp;string&nbsp;value&nbsp;that&nbsp;is&nbsp;similar&nbsp;to&nbsp;the&nbsp;following&nbsp;form.</span></span></span></div><div class="line"><a name="line912"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;The&nbsp;exact&nbsp;format&nbsp;depends&nbsp;on&nbsp;the&nbsp;platform.</span></span></span></div><div class="line"><a name="line913"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line914"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;17:28:35</span></span></span></div><div class="line"><a name="line915"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line916"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;You&nbsp;shouldn&#39;t&nbsp;use&nbsp;this&nbsp;method&nbsp;in&nbsp;contexts&nbsp;where&nbsp;you&nbsp;rely&nbsp;on&nbsp;a&nbsp;particular&nbsp;format&nbsp;or&nbsp;locale.</span></span></span></div><div class="line"><a name="line917"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line918"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&quot;Last&nbsp;visit:&nbsp;&quot;&nbsp;+&nbsp;someDate.toLocaleTimeString();&nbsp;//&nbsp;Good&nbsp;example</span></span></span></div><div class="line"><a name="line919"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&quot;Last&nbsp;visit&nbsp;was&nbsp;at&nbsp;&quot;&nbsp;+&nbsp;someDate.toLocaleTimeString();&nbsp;//&nbsp;Bad&nbsp;example</span></span></span></div><div class="line"><a name="line920"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line921"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@return</span></span><span>&nbsp;</span><span class="other meta jsdoc"><span class="entity name type instance jsdoc"><span>{String}</span></span><span>&nbsp;</span><span class="variable other jsdoc"><span>Human</span></span><span class="other description jsdoc"><span>-readable&nbsp;string&nbsp;that&nbsp;may&nbsp;be&nbsp;formatted&nbsp;differently&nbsp;depending</span></span></span></span></span></div><div class="line"><a name="line922"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;on&nbsp;the&nbsp;country.</span></span></span></div><div class="line"><a name="line923"><span class="source js"><span class="comment block documentation js"><span>&nbsp;</span><span class="punctuation definition comment js"><span>*/</span></span></span></span></div><div class="line"><a name="line924"><span class="source js"><span>&nbsp;</span></span></div><div class="line"><a name="line925"><span class="source js"><span class="comment block documentation js"><span class="punctuation definition comment js"><span>/**</span></span></span></span></div><div class="line"><a name="line926"><a name="Date-method-toString"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@method</span></span><span>&nbsp;toString</span></span></span></div><div class="line"><a name="line927"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;Returns&nbsp;a&nbsp;string&nbsp;representing&nbsp;the&nbsp;specified&nbsp;Date&nbsp;object.&nbsp;Overrides&nbsp;the</span></span></span></div><div class="line"><a name="line928"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;`Object.prototype.toString`&nbsp;method.</span></span></span></div><div class="line"><a name="line929"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line930"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;The&nbsp;`Date`&nbsp;object&nbsp;overrides&nbsp;the&nbsp;toString&nbsp;method&nbsp;of&nbsp;the&nbsp;Object&nbsp;object;&nbsp;it&nbsp;does&nbsp;not&nbsp;inherit</span></span></span></div><div class="line"><a name="line931"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;`Object.toString`.&nbsp;For&nbsp;`Date`&nbsp;objects,&nbsp;the&nbsp;`toString`&nbsp;method&nbsp;returns&nbsp;a&nbsp;string&nbsp;representation&nbsp;of&nbsp;the</span></span></span></div><div class="line"><a name="line932"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;object.</span></span></span></div><div class="line"><a name="line933"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line934"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;`toString`&nbsp;always&nbsp;returns&nbsp;a&nbsp;string&nbsp;representation&nbsp;of&nbsp;the&nbsp;date&nbsp;in&nbsp;American&nbsp;English.</span></span></span></div><div class="line"><a name="line935"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line936"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;JavaScript&nbsp;calls&nbsp;the&nbsp;`toString`&nbsp;method&nbsp;automatically&nbsp;when&nbsp;a&nbsp;date&nbsp;is&nbsp;to&nbsp;be&nbsp;represented&nbsp;as&nbsp;a&nbsp;text</span></span></span></div><div class="line"><a name="line937"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;value&nbsp;or&nbsp;when&nbsp;a&nbsp;date&nbsp;is&nbsp;referred&nbsp;to&nbsp;in&nbsp;a&nbsp;string&nbsp;concatenation.</span></span></span></div><div class="line"><a name="line938"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line939"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;The&nbsp;following&nbsp;assigns&nbsp;the&nbsp;`toString`&nbsp;value&nbsp;of&nbsp;a&nbsp;`Date`&nbsp;object&nbsp;to&nbsp;`myVar`:</span></span></span></div><div class="line"><a name="line940"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line941"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;x&nbsp;=&nbsp;new&nbsp;Date();</span></span></span></div><div class="line"><a name="line942"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;myVar=x.toString();&nbsp;&nbsp;&nbsp;//assigns&nbsp;a&nbsp;value&nbsp;to&nbsp;myVar&nbsp;similar&nbsp;to:</span></span></span></div><div class="line"><a name="line943"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//Mon&nbsp;Sep&nbsp;28&nbsp;1998&nbsp;14:36:22&nbsp;GMT-0700&nbsp;(Pacific&nbsp;Daylight&nbsp;Time)</span></span></span></div><div class="line"><a name="line944"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line945"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@return</span></span><span>&nbsp;</span><span class="other meta jsdoc"><span class="entity name type instance jsdoc"><span>{String}</span></span><span>&nbsp;</span><span class="variable other jsdoc"><span>Human</span></span><span class="other description jsdoc"><span>-readable&nbsp;string&nbsp;of&nbsp;the&nbsp;date&nbsp;in&nbsp;local&nbsp;time.</span></span></span></span></span></div><div class="line"><a name="line946"><span class="source js"><span class="comment block documentation js"><span>&nbsp;</span><span class="punctuation definition comment js"><span>*/</span></span></span></span></div><div class="line"><a name="line947"><span class="source js"><span>&nbsp;</span></span></div><div class="line"><a name="line948"><span class="source js"><span class="comment block documentation js"><span class="punctuation definition comment js"><span>/**</span></span></span></span></div><div class="line"><a name="line949"><a name="Date-method-toTimeString"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@method</span></span><span>&nbsp;toTimeString</span></span></span></div><div class="line"><a name="line950"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;Returns&nbsp;the&nbsp;&quot;time&quot;&nbsp;portion&nbsp;of&nbsp;the&nbsp;Date&nbsp;as&nbsp;a&nbsp;human-readable&nbsp;string.</span></span></span></div><div class="line"><a name="line951"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line952"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;{@link&nbsp;Date}&nbsp;instances&nbsp;refer&nbsp;to&nbsp;a&nbsp;specific&nbsp;point&nbsp;in&nbsp;time.&nbsp;Calling&nbsp;`toString`&nbsp;will&nbsp;return&nbsp;the</span></span></span></div><div class="line"><a name="line953"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;date&nbsp;formatted&nbsp;in&nbsp;a&nbsp;human&nbsp;readable&nbsp;form&nbsp;in&nbsp;American&nbsp;English.&nbsp;In&nbsp;SpiderMonkey,&nbsp;this&nbsp;consists&nbsp;of&nbsp;the</span></span></span></div><div class="line"><a name="line954"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;date&nbsp;portion&nbsp;(day,&nbsp;month,&nbsp;and&nbsp;year)&nbsp;followed&nbsp;by&nbsp;the&nbsp;time&nbsp;portion&nbsp;(hours,&nbsp;minutes,&nbsp;seconds,&nbsp;and</span></span></span></div><div class="line"><a name="line955"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;time&nbsp;zone).&nbsp;Sometimes&nbsp;it&nbsp;is&nbsp;desirable&nbsp;to&nbsp;obtain&nbsp;a&nbsp;string&nbsp;of&nbsp;the&nbsp;time&nbsp;portion;&nbsp;such&nbsp;a&nbsp;thing&nbsp;can&nbsp;be</span></span></span></div><div class="line"><a name="line956"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;accomplished&nbsp;with&nbsp;the&nbsp;`toTimeString`&nbsp;method.</span></span></span></div><div class="line"><a name="line957"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line958"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;The&nbsp;`toTimeString`&nbsp;method&nbsp;is&nbsp;especially&nbsp;useful&nbsp;because&nbsp;compliant&nbsp;engines&nbsp;implementing&nbsp;ECMA-262&nbsp;may</span></span></span></div><div class="line"><a name="line959"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;differ&nbsp;in&nbsp;the&nbsp;string&nbsp;obtained&nbsp;from&nbsp;`toString`&nbsp;for&nbsp;`Date`&nbsp;objects,&nbsp;as&nbsp;the&nbsp;format&nbsp;is&nbsp;implementation-</span></span></span></div><div class="line"><a name="line960"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;dependent;&nbsp;simple&nbsp;string&nbsp;slicing&nbsp;approaches&nbsp;may&nbsp;not&nbsp;produce&nbsp;consistent&nbsp;results&nbsp;across&nbsp;multiple</span></span></span></div><div class="line"><a name="line961"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;engines.</span></span></span></div><div class="line"><a name="line962"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line963"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;d&nbsp;=&nbsp;new&nbsp;Date(1993,&nbsp;6,&nbsp;28,&nbsp;14,&nbsp;39,&nbsp;7);</span></span></span></div><div class="line"><a name="line964"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;println(d.toString());&nbsp;//&nbsp;prints&nbsp;Wed&nbsp;Jul&nbsp;28&nbsp;1993&nbsp;14:39:07&nbsp;GMT-0600&nbsp;(PDT)</span></span></span></div><div class="line"><a name="line965"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;println(d.toTimeString());&nbsp;//&nbsp;prints&nbsp;14:39:07&nbsp;GMT-0600&nbsp;(PDT)</span></span></span></div><div class="line"><a name="line966"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line967"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@return</span></span><span>&nbsp;</span><span class="other meta jsdoc"><span class="entity name type instance jsdoc"><span>{String}</span></span><span>&nbsp;</span><span class="variable other jsdoc"><span>Human</span></span><span class="other description jsdoc"><span>-readable&nbsp;string&nbsp;of&nbsp;the&nbsp;date&nbsp;in&nbsp;local&nbsp;time.</span></span></span></span></span></div><div class="line"><a name="line968"><span class="source js"><span class="comment block documentation js"><span>&nbsp;</span><span class="punctuation definition comment js"><span>*/</span></span></span></span></div><div class="line"><a name="line969"><span class="source js"><span>&nbsp;</span></span></div><div class="line"><a name="line970"><span class="source js"><span class="comment block documentation js"><span class="punctuation definition comment js"><span>/**</span></span></span></span></div><div class="line"><a name="line971"><a name="Date-method-toUTCString"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@method</span></span><span>&nbsp;toUTCString</span></span></span></div><div class="line"><a name="line972"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;Converts&nbsp;a&nbsp;date&nbsp;to&nbsp;a&nbsp;string,&nbsp;using&nbsp;the&nbsp;universal&nbsp;time&nbsp;convention.</span></span></span></div><div class="line"><a name="line973"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line974"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;The&nbsp;value&nbsp;returned&nbsp;by&nbsp;`toUTCString`&nbsp;is&nbsp;a&nbsp;readable&nbsp;string&nbsp;in&nbsp;American&nbsp;English&nbsp;in&nbsp;the&nbsp;UTC&nbsp;time&nbsp;zone.</span></span></span></div><div class="line"><a name="line975"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;The&nbsp;format&nbsp;of&nbsp;the&nbsp;return&nbsp;value&nbsp;may&nbsp;vary&nbsp;according&nbsp;to&nbsp;the&nbsp;platform.</span></span></span></div><div class="line"><a name="line976"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line977"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;today&nbsp;=&nbsp;new&nbsp;Date();</span></span></span></div><div class="line"><a name="line978"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;UTCstring&nbsp;=&nbsp;today.toUTCString();</span></span></span></div><div class="line"><a name="line979"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;Mon,&nbsp;03&nbsp;Jul&nbsp;2006&nbsp;21:44:38&nbsp;GMT</span></span></span></div><div class="line"><a name="line980"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line981"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@return</span></span><span>&nbsp;</span><span class="other meta jsdoc"><span class="entity name type instance jsdoc"><span>{String}</span></span><span>&nbsp;</span><span class="variable other jsdoc"><span>String</span></span><span>&nbsp;</span><span class="other description jsdoc"><span>of&nbsp;the&nbsp;date&nbsp;in&nbsp;UTC.</span></span></span></span></span></div><div class="line"><a name="line982"><span class="source js"><span class="comment block documentation js"><span>&nbsp;</span><span class="punctuation definition comment js"><span>*/</span></span></span></span></div><div class="line"><a name="line983"><span class="source js"><span>&nbsp;</span></span></div><div class="line"><a name="line984"><span class="source js"><span class="comment block documentation js"><span class="punctuation definition comment js"><span>/**</span></span></span></span></div><div class="line"><a name="line985"><a name="Date-method-valueOf"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@method</span></span><span>&nbsp;valueOf</span></span></span></div><div class="line"><a name="line986"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;Returns&nbsp;the&nbsp;primitive&nbsp;value&nbsp;of&nbsp;a&nbsp;Date&nbsp;object.&nbsp;Overrides&nbsp;the</span></span></span></div><div class="line"><a name="line987"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;Object.prototype.valueOf&nbsp;method.</span></span></span></div><div class="line"><a name="line988"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line989"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;The&nbsp;`valueOf`&nbsp;method&nbsp;returns&nbsp;the&nbsp;primitive&nbsp;value&nbsp;of&nbsp;a&nbsp;`Date`&nbsp;object&nbsp;as&nbsp;a&nbsp;number&nbsp;data&nbsp;type,&nbsp;the</span></span></span></div><div class="line"><a name="line990"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;number&nbsp;of&nbsp;milliseconds&nbsp;since&nbsp;midnight&nbsp;01&nbsp;January,&nbsp;1970&nbsp;UTC.</span></span></span></div><div class="line"><a name="line991"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line992"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;This&nbsp;method&nbsp;is&nbsp;functionally&nbsp;equivalent&nbsp;to&nbsp;the&nbsp;`getTime`&nbsp;method.</span></span></span></div><div class="line"><a name="line993"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line994"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;This&nbsp;method&nbsp;is&nbsp;usually&nbsp;called&nbsp;internally&nbsp;by&nbsp;JavaScript&nbsp;and&nbsp;not&nbsp;explicitly&nbsp;in&nbsp;code.</span></span></span></div><div class="line"><a name="line995"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line996"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;x&nbsp;=&nbsp;new&nbsp;Date(56,&nbsp;6,&nbsp;17);</span></span></span></div><div class="line"><a name="line997"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;myVar&nbsp;=&nbsp;x.valueOf();&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//assigns&nbsp;-424713600000&nbsp;to&nbsp;myVar</span></span></span></div><div class="line"><a name="line998"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line999"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@return</span></span><span>&nbsp;</span><span class="other meta jsdoc"><span class="entity name type instance jsdoc"><span>{Number}</span></span><span>&nbsp;</span><span class="variable other jsdoc"><span>Date</span></span><span>&nbsp;</span><span class="other description jsdoc"><span>represented&nbsp;as&nbsp;milliseconds.</span></span></span></span></span></div><div class="line"><a name="line1000"><span class="source js"><span class="comment block documentation js"><span>&nbsp;</span><span class="punctuation definition comment js"><span>*/</span></span></span></span></div><div class="line"><a name="line1001"><span class="source js"><span>&nbsp;</span></span></div><div class="line"><a name="line1002"><span class="source js"><span class="comment line double-slash js"><span class="punctuation definition comment js"><span>//</span></span><span>&nbsp;ECMAScript&nbsp;5&nbsp;methods</span><span>&nbsp;</span></span></span></div><div class="line"><a name="line1003"><span class="source js"><span>&nbsp;</span></span></div><div class="line"><a name="line1004"><span class="source js"><span class="comment block documentation js"><span class="punctuation definition comment js"><span>/**</span></span></span></span></div><div class="line"><a name="line1005"><a name="Date-method-toJSON"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@method</span></span><span>&nbsp;toJSON</span></span></span></div><div class="line"><a name="line1006"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;Returns&nbsp;a&nbsp;JSON&nbsp;representation&nbsp;of&nbsp;the&nbsp;Date&nbsp;object.</span></span></span></div><div class="line"><a name="line1007"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line1008"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;Date&nbsp;instances&nbsp;refer&nbsp;to&nbsp;a&nbsp;specific&nbsp;point&nbsp;in&nbsp;time.&nbsp;Calling&nbsp;`toJSON()`</span></span></span></div><div class="line"><a name="line1009"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;returns&nbsp;a&nbsp;JSON&nbsp;formatted&nbsp;string&nbsp;representing&nbsp;the&nbsp;Date&nbsp;object&#39;s</span></span></span></div><div class="line"><a name="line1010"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;value.&nbsp;&nbsp;This&nbsp;method&nbsp;is&nbsp;generally&nbsp;intended&nbsp;to,&nbsp;by&nbsp;default,&nbsp;usefully</span></span></span></div><div class="line"><a name="line1011"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;serialize&nbsp;Date&nbsp;objects&nbsp;during&nbsp;JSON&nbsp;serialization.</span></span></span></div><div class="line"><a name="line1012"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line1013"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;jsonDate&nbsp;=&nbsp;(new&nbsp;Date()).toJSON();</span></span></span></div><div class="line"><a name="line1014"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;backToDate&nbsp;=&nbsp;new&nbsp;Date(jsonDate);</span></span></span></div><div class="line"><a name="line1015"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line1016"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(&quot;Serialized&nbsp;date&nbsp;object:&nbsp;&quot;&nbsp;+&nbsp;jsonDate);</span></span></span></div><div class="line"><a name="line1017"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;Serialized&nbsp;date&nbsp;object:&nbsp;2013-01-17T12:59:08.449Z</span></span></span></div><div class="line"><a name="line1018"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line1019"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;**NOTE:**&nbsp;This&nbsp;method&nbsp;is&nbsp;part&nbsp;of&nbsp;the&nbsp;ECMAScript&nbsp;5&nbsp;standard.</span></span></span></div><div class="line"><a name="line1020"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line1021"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@return</span></span><span>&nbsp;</span><span class="other meta jsdoc"><span class="entity name type instance jsdoc"><span>{String}</span></span><span>&nbsp;</span><span class="variable other jsdoc"><span>Date</span></span><span>&nbsp;</span><span class="other description jsdoc"><span>value&nbsp;in&nbsp;`YYYY-MM-DDTHH-MM-SS.MMMZ`&nbsp;format.</span></span></span></span></span></div><div class="line"><a name="line1022"><span class="source js"><span class="comment block documentation js"><span>&nbsp;</span><span class="punctuation definition comment js"><span>*/</span></span></span></span></div></pre>
</body>
<script>
    (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
                (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
            m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
    })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');

    ga('create', 'UA-1396058-28', 'auto');
    ga('send', 'pageview');

</script>
</html>
